We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c141d commit 43ba043Copy full SHA for 43ba043
nbval/plugin.py
@@ -926,3 +926,19 @@ def _indent(s, indent=' '):
926
if isinstance(s, str):
927
return '\n'.join(('%s%s' % (indent, line) for line in s.splitlines()))
928
return s
929
+
930
931
+skip_modules = []
932
933
934
+@pytest.hookimpl(tryfirst=True, hookwrapper=True)
935
+def pytest_runtest_makereport(item, call):
936
+ outcome = yield
937
938
+ if outcome.get_result().failed:
939
+ skip_modules.append(item.path)
940
941
942
+def pytest_runtest_call(item):
943
+ if item.path in skip_modules:
944
+ pytest.skip(f"Due to the previous failure skipping rest of tests in {item.path}")
0 commit comments