擅长:python、mysql、java
<pre><code>pytest -x # stop after first failure
pytest --maxfail=2 # stop after two failures
</code></pre>
<p>请参阅<a href="http://pytest.org/en/latest/usage.html#stopping-after-the-first-or-n-failures" rel="noreferrer">http://pytest.org/en/latest/usage.html</a>上的文档</p>