craigahobbs / unittest-parallel

Parallel unit test runner for Python with coverage support
MIT License
29 stars 5 forks source link

How do I use it on my project? #2

Closed alexandrebarbaruiva closed 4 years ago

alexandrebarbaruiva commented 4 years ago

How do I use unittest-parallel in my project?

When I run

unittest-parallel tests.py

I get the following error

unittest-parallel: error: unrecognized arguments: tests.py
craigahobbs commented 4 years ago

unittest-parallel is implicitly "discover" based on the presumption that you'll have lots of unit tests (and hence the need for a parallel unit test runner). Is your case different?

So, the way to run it is:

unittest-parallel

or perhaps more exactly:

unittest-parallel -p test.py
craigahobbs commented 4 years ago

Updated README with usage examples.