[Snowball-discuss] [patch included] Add tox testing support to PyStemmer
Marc Abramowitz
marca at surveymonkey.com
Thu Feb 21 23:43:10 GMT 2013
Tox (http://tox.testrun.org/) is a nice tool for testing Python modules with various versions of Python and various sets of packages.
I thought it would be useful here because it gives developers an easy way to quickly verify that PyStemmer is working as expected on various versions of Python such as 2.6, 2.7, 3.3, pypy, etc.
Here's the patch:
https://gist.github.com/msabramo/5009465
The tox.ini file is the main thing needed, but I also made a change to runtests.py so that it exits with a non-zero exit code if any doctests fail. Otherwise, tox will report success even when there are test failures.
If there is a CI system, "tox" is a good command to execute in your CI job to verify all Python versions at once.
And the good news is that the tests are passing on a wide range of Python versions:
```
$ tox
…
py26: commands succeeded
py27: commands succeeded
py33: commands succeeded
pypy: commands succeeded
congratulations :)
```
Marc
http://marc-abramowitz.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tartarus.org/mailman/private/snowball-discuss/attachments/20130221/e5e876e8/attachment.htm>
More information about the Snowball-discuss
mailing list