abundant-keyboard-19745
03/31/2023, 2:21 PMtest goal to run Python tests (https://www.pantsbuild.org/docs/python-test-goal), is there an option to do more than one run per test? The context is that I want to do periodic runs in CI where all unit tests are reran forcefully (i.e., with the --force option) in order to help catch unit test flakiness. I also would like to do more than one run per test. For comparison, in Bazel one can do --runs_per_test=<n> --cache_test_results=no, which fits the ask perfectly. However, Pants doesn't seem to have the option to do more than forceful run per test. I suppose one could do something such as wrap ./pants test --force :: in a Bash loop (for i in {1..<n>}; do ./pants test --force ::; done), but that feels clunky.bitter-ability-32190
03/31/2023, 3:10 PMabundant-keyboard-19745
03/31/2023, 3:21 PMpytest-repeat plugin: https://pypi.org/project/pytest-repeat/. However, the project description page rules out support with unittest.TestCase test classes outright, which would be a deal breaker.bitter-ability-32190
03/31/2023, 3:27 PMbitter-ability-32190
03/31/2023, 3:27 PMabundant-keyboard-19745
03/31/2023, 5:00 PMabundant-keyboard-19745
03/31/2023, 5:03 PM