Control maxfail behavior in pytest-check
mainThe maxfail setting in pytest counts tests, not individual checks.
- Using
-xor--maxfail=1will cause the plugin to abort testing after the very first failed check within a test. - Using
-maxfail=2or greater will cause pytest to behave normally (it will only stop after the specified number of failed test functions).