Distutils and unit test files

J

Joe Riopel

Hi,

I am using Distutils to build and distribute some packages. I do write
unit tests, but I am confused as to where to put them and how to run
them prior to the package being installed (The modules being tested
would not be in my sys.path). I would rather not put the test cases in
the same files as the modules being tested, I want keep them in a sub
directory of the module, or in a separate "test" directory.

What are some of the strategies for dealing with this?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top