Skip to main content

Cricket

Cricket is part of the BeeWare suite. The project website is http://pybee.org/cricket.

Cricket is a graphical tool that helps you run your test suites.

Normal unittest test runners dump all output to the console, and provide very little detail while the suite is running. As a result:

  • You can’t start looking at failures until the test suite has completed running,

  • It isn’t a very accessible format for identifying patterns in test failures,

  • It can be hard (or cumbersome) to re-run any tests that have failed.

Why the name cricket? Test Cricket is the most prestigious version of the game of cricket. Games last for up to 5 days… just like running some test suites. The usual approach for making cricket watchable is a generous dose of beer; in programming, Balmer Peak limits come into effect, so something else is required…

Quickstart

At present, Cricket has support for:

  • Pre-Django 1.6 project test suites,

  • Django 1.6+ project test suites using unittest2-style discovery, and

  • unittest project test suites.

In your Django project, install cricket, and then run it:

$ pip install cricket
$ cricket-django

cricket-django will also work in Django’s own tests directory – i.e., you can use cricket-django to run Django’s own test suite (for Django 1.6 or later).

In a unittest project, install cricket, and then run it:

$ pip install cricket
$ cricket-unittest

This will pop up a GUI window. Hit “Run all”, and watch your test suite execute. A progress bar is displayed in the bottom right hand corner of the window, along with an estimate of time remaining.

While the suite is running, you can click on test names to see the output of that test. If the test passed, it will be displayed in green; other test results will be shown in other colors.

Problems under Ubuntu

Ubuntu’s packaging of Python omits the idlelib library from it’s base package. If you’re using Python 2.7 on Ubuntu 13.04, you can install idlelib by running:

$ sudo apt-get install idle-python2.7

For other versions of Python and Ubuntu, you’ll need to adjust this as appropriate.

Problems under Windows

If you’re running Cricket in a virtualenv under Windows, you’ll need to set an environment variable so that Cricket can find the TCL graphics library:

$ set TCL_LIBRARY=c:\Python27\tcl\tcl8.5

You’ll need to adjust the exact path to reflect your local Python install. You may find it helpful to put this line in the activate.bat script for your virtual environment so that it is automatically set whenever the virtualenv is activated.

Documentation

Documentation for cricket can be found on Read The Docs.

Community

Cricket is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with cricket, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

Metadata

Release files for cricket 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cricket 0.2.5
File Size Uploaded
cricket-0.2.5.tar.gz 37.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cricket 0.2.5
File Interpreter ABI Platform
cricket-0.2.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 72.5 kB

Release files / cricket-0.2.5.tar.gz

Download URL cricket-0.2.5.tar.gz
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc0f888fcb5375f5946e9e966a825abbdf66287a14f5a35070f9f9e29a17081b
BLAKE2b-256 checksum
How to use checksums
dcb32813a8d2c2aade4f1be9f97ee661df20ef2f4fff9b778ca7fd07d5f0128f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cricket-0.2.5-py2.py3-none-any.whl

Download URL cricket-0.2.5-py2.py3-none-any.whl
Size 35.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
04811bc124a58ec51e0ea1ff06f0cff49dd05e1bb6616c1295dd7c0033bf9620
BLAKE2b-256 checksum
How to use checksums
20def4354228da7d45546fb5474b80cbaf3d7ae9ad36c194ae8a0f31b9d31ff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page