Releases: Quansight-Labs/pytest-run-parallel
v0.4.0
This is a major pytest-run-parallel release that adds several features, including a new option to add function and fixture names that should cause tests to be marked as thread-unsafe, skipping if hypothesis is used, as well as improved reports when running test suites in parallel.
This release also modifies the thread switch interval time value in order to increase the probability of thread collisions, therefore test execution time might increase as well.
What's Changed
- Fix typo in README.rst by @Viicos in #28
- Set thread switch interval to a small value during test execution by @andfoy in #31
- Add a list of thread-unsafe fixtures and mark tests as thread-unsafe if usage is found by @andfoy in #33
- Release thread start barrier in case an error occurs by @andfoy in #32
- Add a configuration file option to extend the thread-unsafe fixture list by @andfoy in #34
- Make sure sdist includes all files by @ngoldbaum in #39
- fail more gracefully when a test item doesn't duck type by @ngoldbaum in #36
- Implement a mechanism for registering and marking functions as thread-unsafe by @andfoy in #37
- Automatically mark hypothesis tests as thread-unsafe by @ngoldbaum in #42
- fix for hypotheis 6.131.0 release by @ngoldbaum in #43
- Highlight which tests are being run in parallel by @andfoy in #44
New Contributors
Full Changelog: v0.3.1...v0.4.0
v0.3.1
Minor pytest-run-parallel release that adds auto as a value option to the --parallel-threads flag, allowing to autodetect the number of available threads of the current running environment. It also provides more information in the README.
What's Changed
- Add "how it works" and "caveats" sections to readme by @ngoldbaum in #24
- Implement automatic CPU count detection by @lysnikolaou in #25
New Contributors
- @ngoldbaum made their first contribution in #24
Full Changelog: v0.3.0...v0.3.1
v0.3.0
v0.2.0
Minor pytest-run-parallel that adds support for repeated execution. It also fixes several issues related to variable scoping and introduces a new marker for single-threaded tests.
What's Changed
- Fix PyPI link by @lesteve in #6
- Fix typo in README by @radarhere in #9
- Change configuration to use uv & ruff by @lysnikolaou in #10
- Add option to set number of iterations in each thread by @lysnikolaou in #11
- Add pre-commit config and autofix CI by @lysnikolaou in #12
- Ensure that pytest.mark.skipif works by @andfoy in #15
- Add thread_unsafe marker as an alias for parallel_threads(1) by @andfoy in #18
New Contributors
- @lesteve made their first contribution in #6
- @radarhere made their first contribution in #9
- @lysnikolaou made their first contribution in #10
Full Changelog: v0.1.0...v0.2.0