pytest test_this1.py --collect-only -q | |
and it will list: | |
test_this1.py::TestMathUnitTest::test_floor_0_negative | |
test_this1.py::TestMathUnitTest::test_floor_1_integer | |
test_this1.py::TestMathUnitTest::test_floor_2_large_fraction | |
So now you can run just 2 specific sub-tests: | |
pytest test_this1.py::TestMathUnitTest::test_floor_0_negative test_this1.py::TestMathUnitTest::test_floor_1_integer | |
The module parameterized which is already in the developer dependencies | |
of transformers works for both: unittests and pytest tests. |