PK :C# cricket-v0.2.3/searchindex.jsSearch.setIndex({objects:{},terms:{all:[1,2],code:[2,3],abil:[0,3,4],follow:[0,2],depend:2,program:1,under:1,tcl8:1,mechan:0,failur:1,veri:[0,1],exact:1,relev:0,button:4,list:0,adjust:1,overlaid:3,pleas:2,discover:0,helicopt:[0,1],port:3,even:0,index:1,access:1,"public":4,version:[1,2],"new":3,method:0,thin:0,widget:0,full:0,gener:[0,1,4],modif:3,ubuntu:[1,4],path:1,search:[1,3],modul:[0,1,2,4],apt:1,put:1,instal:[1,2,4],txt:2,select:4,from:[1,4],advantag:0,would:0,commun:3,coverag:[3,4],websit:1,call:0,recommend:2,until:1,more:0,examin:0,cach:4,graphic:1,work:1,cumbersom:1,histori:[1,4],can:1,executor:[0,3,4],quickstart:1,stream:0,sudo:1,indic:1,want:[0,1,2],juli:[1,4],end:3,write:[0,1],subdirectori:0,instead:2,updat:4,clone:2,reflect:1,mai:1,github:2,django:[0,1,4],caus:4,callback:0,environ:[0,1,2],incorpor:4,help:[1,4],becaus:2,keyboard:3,style:[0,1,4],fix:4,selenium:3,window:1,pytest:[0,3],main:0,might:[0,1],them:2,duvet:4,python:[1,2,3],dai:1,initi:4,now:2,choic:0,name:[0,1],each:3,gui:[0,1,3],hard:[0,1],continu:3,realli:0,expect:0,event:0,variabl:1,content:1,correct:4,argv:0,standard:[0,2,3],base:[1,3],releas:[1,4],org:1,requirements_dev_python2:2,omit:1,thing:3,isn:1,onto:0,think:0,first:0,onc:0,number:0,hook:0,differ:0,script:1,system:[0,1],necessarili:0,store:3,consol:1,namespac:0,tool:[0,1],appropri:[0,1],target:0,whenev:1,provid:[0,1,3],project:[1,3,4],mkvirtualenv:2,seri:0,pre:1,"function":0,runner:1,idlelib:1,ani:1,packag:1,have:[1,2,3],tabl:1,need:[0,1],built:0,pybe:[1,2,4],also:1,take:0,which:0,unittest2:[1,2,4],envrion:2,normal:1,track:3,most:1,virut:2,prestigi:1,pyc:4,why:[0,1],later:1,request:2,pipe:0,part:[1,2],dot:0,hack:2,identifi:1,discoveri:[1,4],find:1,onli:[0,2],layout:[0,1],just:[0,1],menu:4,activ:1,should:0,local:1,hit:1,contribut:[1,2,3],get:1,watch:1,report:4,requir:[0,1,2],bat:1,patch:3,stuff:0,integr:[3,4],contain:0,septemb:[1,4],view:0,set:[1,2],dump:1,startup:4,roadmap:[1,3],result:[1,3],fail:1,best:0,concern:0,pattern:1,someth:1,label:0,state:4,between:3,experi:2,approach:1,accord:0,august:[1,4],kei:0,come:1,addit:2,both:0,last:1,howev:0,improv:[3,4],com:2,simpli:0,point:0,overview:[0,1],unittest:[0,1,2],pop:1,littl:1,suppli:0,assum:2,pycon:4,backend:[0,1,3],beewar:1,beer:1,tkreadonli:3,packg:1,understand:0,present:1,"case":2,look:1,histor:3,defin:0,"while":1,error:4,fun:2,virtualenvwrapp:2,helper:2,stdout:0,readi:2,"__main__":0,itself:0,tcl_librari:1,develop:[1,2],make:1,same:0,handl:4,complex:0,subunit:3,complet:1,http:1,screenshot:3,effect:1,rais:4,user:0,task:0,machineri:0,entri:0,well:[0,2],command:[0,2],thi:[0,1],model:0,usual:1,protocol:3,execut:[0,1,4],less:0,dose:1,tcl:1,sky:0,shortcut:3,add:3,other:1,els:1,pipedtestrunn:0,testr:3,format:1,game:1,background:3,python2:1,like:[1,3],manual:4,collect:[3,4],either:0,output:[0,1],page:1,some:[0,1],sprint:4,librari:[1,2],virtualenv:1,nose:3,watchabl:1,core:0,run:[0,1,2,4],stage:0,actual:3,slightli:0,idl:1,produc:0,own:[1,2,4],pythonpath:4,within:2,automat:1,wrap:0,your:[1,2],git:2,log:2,wai:2,support:[0,1,4],submit:2,custom:0,avail:0,start:[0,1,2,4],interfac:[0,3],includ:[0,3,4],lot:3,suit:[0,1,2,4],fork:2,cricket:[0,1,2,3],form:0,python27:1,line:[0,1],pull:2,requirements_dev:2,consist:0,possibl:3,displai:3,limit:[0,1],problem:[1,2,4],featur:3,creat:0,dure:4,balmer:1,file:[0,3],pip:[1,2],when:4,detail:[0,1],virtual:[1,2],valid:0,test:[0,1,2,3,4],you:[0,1,2,3],architectur:[0,1],stat:3,june:[1,4],peak:1,relaunch:4,directori:[0,1],mask:4,time:0},objtypes:{},titles:["Writing a Cricket backend","Cricket","Contributing to Cricket","Cricket Roadmap","Release History"],objnames:{},filenames:["internals/backends","index","internals/contributing","internals/roadmap","releases"]})PK :C[/3 /3 cricket-v0.2.3/releases.html
- Added ability to generate coverage
- Integration with Duvet
- Corrected a problem with starting unittest2 projects.
- Corrected a error raised when unittest2 was manually installed in PYTHONPATH.
- Fixed selection of test modules in unittest2-style suite discovery.
- Added ability to run Django’s own test suite.
- Relaunch as a PyBee project.
- Added test and help menus.
- Corrected problem with Django test executor, masked by pyc caching.
- Improved collection of errors raised during test startup.
- Improved handling of button state during test execution.
Release incorporating updates from the PyCon AU 2013 sprints, including:
- Unittest2 support
- Improved handling of errors raised during test execution
- Improved reporting of errors caused on Ubuntu
Initial public release, at PyCon AU 2013
Please activate JavaScript to enable the search functionality.
From here you can search these documents. Enter your search words into the box below and click "search". Note that the search function will automatically search for all of the words. Pages containing fewer words won't appear in the result list.
Cricket is part of the BeeWare suite. The project website is http://pybee.org/cricket.
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:
- 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...
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.
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.
If you’re running Cricket in a virtualenv, 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.
Contents:
Cricket is a new project - we have lots of things that we’d like to do. If you’d like to contribute, providing a patch for one of these features:
- Use a standard protocol (e.g., subunit) for communicating between the executor and the GUI
- Port to Python 3
- Add a pytest backend
- Add a nose backend
- Add a selenium backend, including possibly adding the ability to collect and store screenshots at the end of each test
- Improve GUI interface, including:
- keyboard shortcuts
- search
- Integrate with coverage, and use tkreadonly to display coverage stats overlaid on actual code
- Add historical tracking of test results
- Integrate with testr
- Add continuous background testing based on file modifications