Skip to content

Commit 3903dae

Browse files
committed
add --class-fixtures and --module-fixtures options
1 parent 8bac3f7 commit 3903dae

File tree

3 files changed

+339
-50
lines changed

3 files changed

+339
-50
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ unittest-parallel -t . -s tests --coverage-branch
3030
- [Source code on GitHub](https://github.com/craigahobbs/unittest-parallel)
3131

3232

33+
## How it works
34+
35+
unittest-parallel uses Python's built-in unit test discovery to find all test cases in your project.
36+
It then runs all test cases in a Python multi-processing pool of the requested size.
37+
38+
### Class and Module Fixtures
39+
40+
Python's unittest framework supports
41+
[class and module fixtures.](https://docs.python.org/3/library/unittest.html#class-and-module-fixtures)
42+
Use the "--class-fixtures" option to execute class fixtures correctly. Use the "--module-fixtures"
43+
option to execute module fixtures correctly. Note that these options reduce the amount of
44+
parallelism.
45+
46+
3347
## Example output
3448

3549
```
@@ -112,12 +126,6 @@ coverage options:
112126
```
113127

114128

115-
## How it works
116-
117-
unittest-parallel uses Python's built-in unit test discovery to find all of the TestCase classes in
118-
your project. It then runs all tests in a Python multi-processing pool of the requested size.
119-
120-
121129
## Development
122130

123131
This project is developed using [Python Build](https://github.com/craigahobbs/python-build#readme).

0 commit comments

Comments
 (0)