Is it possible to get the results of previous tests in pytest? Or drop test execution if a few specific test failure?
for example:
pytest.mark.skipif(test_failed("test1", "test2"), reason="Reason")
def test_the_unknown(): pass
答案 0 :(得分:0)
没有内置于这种行为atm
但它可以为插件创建工具, 如果您愿意,请联系github,ml或irc频道