run_tests does not return results if any tests did not pass #609
Labels
Comments
I never thought through that scenario. I can export another function that doesn't automatically throw on failure. |
Maybe it's fine for this to be an argument - it's not exactly changing the output type of the function (although it is changing the potential side effects) |
Maybe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there are any test failures, testthat::run_tests (hence test_package) throws
an error and returns nothing, which makes it hard to see what went wrong.
Below I use trace() to extract the 'res' object. (One could also make a reporter
object with reporter=rep <- ListReporter$new() in the call to test_package()
and look at rep$get_results().) Am I missing something about how to use
the reporter? The help files for the reporters have no examples.
The text was updated successfully, but these errors were encountered: