[TIP] including test files when running tox

Chris Jerdonek chris.jerdonek at gmail.com
Tue Apr 10 10:45:07 PDT 2012


I am new to tox and have a question.

My python project has files needed for testing that are not included
when running (for example) "pip install".  These include things like
test data files outside the main package, sub-packages of the main
package with modules containing unit tests, and packages outside the
main package including python modules with test data.

What is the recommended way to ensure that test-related files like
these are available (and in the proper relative location) when running
tox?

I'm using Distribute's `test` command to handle any conversion from
Python 2 to 3 (as described here)--

http://packages.python.org/distribute/python3.html

so it won't be necessary for tox to do any of those conversions.

Thanks,
--Chris



More information about the testing-in-python mailing list