class-fixtures One or more TestCase class has a setUpClass method The number of test processes (default is 0, all cores) Top level directory of project (defaults to start Pattern to match tests ('test*.py' default) k TESTNAMEPATTERNS Only run tests which match the given substringĭirectory to start discovery ('.' default) b, -buffer Buffer stdout and stderr during tests f, -failfast Stop on first fail or error h, -help show this help message and exit Src/schema_markdown/type_model.py 4 0 0 0 100% Src/schema_markdown/encode.py 84 0 60 0 100% Test_struct_empty (tests.test_schema.TestValidateTypeModelTypes). Test_typedef_unknown_type (tests.test_schema.TestValidateTypeModelTypes). Test_simple (tests.test_schema.TestValidateTypeModelTypes). Test_array (tests.test_encode.TestDecodeQueryString). Test_validate_stdin (tests.test_main.TestMain). Test_compile_stdin (tests.test_main.TestMain). Test_first_list_then_dict (tests.test_encode.TestDecodeQueryString). Running 299 test suites (299 total tests) across 8 processes Example output $ unittest-parallel -v -t src -s src/tests -coverage-branch -coverage-fail-under 100 Note that these options reduce the amount of Option to execute module fixtures correctly. Use the "-class-fixtures" option to execute class fixtures correctly. It then runs all test cases in a Python multi-processing pool of the requested size. Unittest-parallel uses Python's built-in unit test discovery to find all test cases in your project. "-coverage-branch" for line and branch coverage. To run your unit tests with coverage, add either the "-coverage" option (for line coverage) or the s testsīy default, unittest-parallel runs unit tests on all CPU cores available. To run unittest-parallel, specify the directory containing your unit tests with the "-s" argumentĪnd your package's top-level directory using the "-t" argument: unittest-parallel -t. Unittest-parallel is a parallel unit test runner for Python with coverage support.
0 Comments
Leave a Reply. |