I am attempting to automate integration testing with snakemake (I need the output from some of the files so this seemed like a good tool). However when I need to run two test suites in pytest, the workflow stops if a single test in either suite fails. So for example I have:
rule run_tests:
run:
commands = [
"pytest test_that_should_fail",
"pytest test_that_should_succeed"
]
for c in commands:
shell(c)
And I need the output of the test that should fail for the latter test. Is there a way to prevent snakemake from stopping after running "pytest test_that_should_fail" ? Additionally snakemake stops without any sort of error message just a generic: "Error in rule run_tests: jobid: 0"