[TIP] running unittests on multiple OS, including non-Posix

Albert-Jan Roskam fomcl at yahoo.com
Fri Feb 28 12:56:45 PST 2014


I would like to run my unittests (--> nose) on multiple 
platforms. I also would like to test different python versions and 
implementations on each platform (--> tox [2]). These platforms also 
include Windows, so Travis CI or Docker is not an option, AFAIK. I was 
thinking about using Vagrant [3] to fire up VirtualBox [4] VMs for each 
platform-to-be-tested, then either (a) fire up nose or tox through SSH 
or (b) (the easy way) prepare each VM such that nose/tox is fired up 
right when the OS starts (ie., edit .bashrc, autoexit.bat or whatever it
 is called for the OS at hand). But this all feels like reinventing the 
wheel. Can you recommend a package or strategy to use? Beautiful is better than ugly, although practicality beats purity. In other words: it would nice if it is The Right Way, but I am a lazy bastard so I am also open for quick-and-dirty approaches ;-)

[1] https://pypi.python.org/pypi/nose/
[2] https://pypi.python.org/pypi/tox
[3] http://www.vagrantbox.es/
[4] https://www.virtualbox.org/




All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a 

fresh water system, and public health, what have the Romans ever done for us?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20140228/eaac3d8c/attachment.htm>

More information about the testing-in-python mailing list