[patch included] Add tox testing support to PyStemmer
Marc Abramowitz <[email protected]> Thu, 21 Feb 2013 23:43:10 +0000
| Newsgroups | gmane.comp.search.snowball |
|---|---|
| Message-ID | <E5CD626161E81C4DBB58B3E7F649BEA213738E@DAGN04b-e6.exg6.exghost.com> |
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/ _______________________________________________ Snowball-discuss mailing list [email protected] http://lists.tartarus.org/mailman/listinfo/snowball-discuss