unittest-parallel

raw JSON →
1.8.0 verified Fri May 01 auth: no python

unittest-parallel is a parallel unit test runner for Python's unittest framework with coverage support. Version 1.8.0, maintained, with monthly releases.

pip install unittest-parallel
error unittest_parallel is not defined
cause Trying to import unittest_parallel as a Python module.
fix
Do not import; run python -m unittest-parallel from command line.
error ModuleNotFoundError: No module named 'unittest_parallel'
cause Attempting to import the package as a library.
fix
Install with pip and use command line tool, not import.
gotcha Do not import unittest_parallel as a module; use the command line tool `python -m unittest-parallel` or the `unittest-parallel` script.
fix Use `python -m unittest-parallel` instead of `import unittest_parallel`.
deprecated The `-j` flag for specifying number of processes is deprecated; use `--processes` instead.
fix Replace `-j 4` with `--processes 4`.
breaking Python 3.6 support dropped in version 1.7.0.
fix Use Python 3.7 or later.

Run all tests in parallel with verbose output.

python -m unittest-parallel -v