Add
--max-warningsoption to fail test runs (#14372)Allow users to set a maximum number of allowed warnings via –max-warnings CLI option or max_warnings config option. When the warning count exceeds the threshold and all tests pass, pytest exits with a new WARNINGS_ERROR exit code (6).
This supports gradually ratcheting down warnings in a codebase without converting them all to errors.
Closes #14371
Signed-off-by: Mike Fiedler miketheman@gmail.com
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号