You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a problem during calculation of code coverage using covr. Even though the tests scripts were executing lines, they were not appearing in the results of covr::package_coverage().
Issue was reported there, and it seems like, as the answer here points out, the app_stop() is executing SIGKILL too soon for covr to trace the lines.
Using this answer as a guidelines, I was able to countermeasure this problem using a simple function that is executed before calling app$stop():
I've encountered a problem during calculation of code coverage using
covr
. Even though the tests scripts were executing lines, they were not appearing in the results ofcovr::package_coverage()
.Issue was reported there, and it seems like, as the answer here points out, the
app_stop()
is executing SIGKILL too soon forcovr
to trace the lines.Using this answer as a guidelines, I was able to countermeasure this problem using a simple function that is executed before calling
app$stop()
:I suggest either upping the time before the
SIGKILL
execution or providing the user an option to overwrite this time.The text was updated successfully, but these errors were encountered: