roadrunner

testrunner for test-driven development
Download

roadrunner Ranking & Summary

Advertisement

  • Rating:
  • License:
  • ZPL
  • Price:
  • FREE
  • Publisher Name:
  • Jordan Baker
  • Publisher web site:
  • http://scryent.com

roadrunner Tags


roadrunner Description

testrunner for test-driven development roadrunner is a looping testrunner with environment preloading for test-drivendevelopment. The project makes integration testing with Plone much faster.Currently it is focused around preloading a Plone environment but it couldalso work for other frameworks as well.It works by pre-loading Python code, setup of test layers and a default Plonesite. This is called the resident test environment.Your tests are run in a child process which gets a copy-on-write memory space.Other than that it pretty much works like the regular Zope testrunner.How much faster is it?Here's an example. You are writing integration or functional tests for a Ploneapplication.On this fairly current laptop it takes 25s to load Zope, Plone and setup asample Plone site.Add 5 seconds for the application load and test run for a total of 30 seconds.If you are iterating on a functional test and want to quickly check yourchanges that is too long to wait.Using roadrunner you load the environment the first time. Subsequent timesyou run your test your total time will be only 5 seconds.Yes, you can save 25 seconds every time you run your test.How to use it?Roadrunner only currently works as part of a zc.buildout environment.The easiest way to try it is to add it to an existing Plone 3 buildout.Now for a sample part.This will create a new directory in parts named by the part containing a copyof your Zope instance environment but with the packages-under-test excludedfrom being loaded via ZCML by default.:: recipe = roadrunner:plone packages-under-test = my.packageYou can also match several packages using simple globbing, eg: my.packages.*The parameter 'zope2-instance' allows you to specify the name of the partwhich corresponds to the zope instance roadrunner will work against. Thedefault is 'instance'.By default resident Plone site will be created. This should work in mostsituations where you are installing add-on products that use install methodsor GenericSetup profiles.setup-plone=0 allows you to disable the Plone site setup optimization. Youmight need to do this in certain situations where you are using the profile_idparameter.Then you can run roadrunner:: $ bin/roadrunner -s my.packageIt will preload Zope & Plone, then fork off the first testrunner. Once thefirst testrunner is complete you will receive the roadrunner prompt whereyou launch additional tests. Requirements: · Python What's New in This Release: · Added a MANIFEST so this can be built by pythons without git support installed.


roadrunner Related Software