aboutsummaryrefslogtreecommitdiff
path: root/infra/pytest.ini
AgeCommit message (Collapse)Author
2021-05-26[CIFuzz] Refactor in preparation for filestore (#5841)jonathanmetzman
1. Moving the _create_config and create_config functions from build_fuzzers_test.py and run_fuzzers_test.py into test_helpers.py (which is now part of cifuzz instead of infra) and share code between them. 2. Rename artifacts_dir to crashes_dir in run_fuzzers.py. "artifacts" is ambiguous. 3. Make some small changes to pytest.ini to improve debugging.
2021-02-05[infra] Improve test speed (#5118)jonathanmetzman
Make unittests take 20 seconds to run instead of 35. Make integration tests take 50 seconds to run instead of 6 minutes. Make CI take 6 minutes instead of 12 minutes. 1. Allow running tests in parallel. Locally this takes the time for running all tests (including integration tests) from 6 minutes to ~50 seconds. We don't do parallel by default since it doesn't really save any time unless running integration tests on my machine (probably due to overhead of starting ~70 processes). This also speeds up CI from about 12 minutes to 6 minutes (since github actions has 2 cores per machine). 2. Fix how we run tests. I'm not exactly sure why, but the method we used for discovering tests, recursing through every directory and passing to unittest caused the build/infra tests to execute twice. Fixing this makes running unittests take ~20 seconds instead of ~35. This change also uses pytest for running tests since it's easy to use it to run tests in parallel. This change was made possible by #5113