Cricket logo


A GUI tool for running Python test suites. Part of the BeeWare suite.

View the Project on GitHub pybee/cricket


Part of the BeeWare logoBeeWare suite.

Cricket 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:

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...


Cricket has support for:

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

$ pip install cricket
$ cricket-django

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

$ pip install cricket
$ cricket-unittest

This will pop up a GUI window: Screenshot of Cricket GUI after running a test suite.

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 packge. 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 for cricket can be found on Read The Docs.


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


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