It would be nice if tinytest offered an option to continue testing a file or directory even if an error is encountered. For example, if we could run run_test_file('test.r') and get a message like:
if one of the tests was something like expect_equal(f(x), 3) and f(x) produced an error.
Just FYI, my specific use case here, which I admit is rather different from typical package testing, is that I'm using tinytest to grade student programming assignments. Sometimes their code crashes for various edge cases, but I still want to know how they did on the other cases. I realize that I can wrap the assertions in try()...this isn't bad, but kind of tedious / cluttered.
It would be nice if tinytest offered an option to continue testing a file or directory even if an error is encountered. For example, if we could run
run_test_file('test.r')and get a message like:if one of the tests was something like
expect_equal(f(x), 3)andf(x)produced an error.Just FYI, my specific use case here, which I admit is rather different from typical package testing, is that I'm using tinytest to grade student programming assignments. Sometimes their code crashes for various edge cases, but I still want to know how they did on the other cases. I realize that I can wrap the assertions in
try()...this isn't bad, but kind of tedious / cluttered.