This website requires JavaScript.
Explore
Help
Register
Sign In
Rooba
/
oss-fuzz
mirror of
https://github.com/google/oss-fuzz.git
Watch
1
Star
1
Fork
You've already forked oss-fuzz
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
oss-fuzz
/
infra
/
pytest.ini
3 lines
48 B
INI
Raw
Permalink
Normal View
History
Unescape
Escape
[infra] Improve test speed (#5118) 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
2021-02-05 14:10:42 +00:00
[pytest]
[CIFuzz] Refactor in preparation for filestore (#5841) 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-05-26 16:45:22 +00:00
python_files
=
*_test.py
log_cli
=
true