I am developing a package which contains various unit tests. I am trying to set up a CI pipeline which would run the unit tests and provide info if they are passed or not. I run the unit tests with command
R -e "setwd('production'); devtools::test()"
then I would expect, in case of failed tests, the exit code to be set to
1. I can check it with
in this case, whether some test are failing or not, exit code is always
0 which suggests success.
Is there a way go get the proper exit code for failed tests?