Shikhar
Shikhar

Reputation: 99

Running multiple python unit test cases which are in different directories

I've written multiple unit tests using python unit test module in multiple directories How to run all the tests from a single file

I have to integrate this file to a jenkins job and am using django

Upvotes: 1

Views: 930

Answers (1)

Daniel Finch
Daniel Finch

Reputation: 443

Your folders will need to contain an __init__.py file in each of them, then you should be able to instantiate the unit test runner and pass it the parent directory, unit test discovery should pick up the sub-folders automatically.

Upvotes: 1

Related Questions