test
Run tests with Pytest.
Pants uses the Pytest test runner to run Python tests. You may write your tests in Pytest-style, unittest-style, or mix and match both.
Benefit of Pants: runs each file in parallel
Each file gets run as a separate process, which gives you fine-grained caching and better parallelism. Given enough cores, Pants will be able to run all your tests at the same time.
This also gives you fine-grained invalidation. If you run ./pants test ::
, and then you only change one file, then only tests that depended on that changed file will need to rerun.