Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skipping lines in a test #312

Closed
yonicd opened this issue May 1, 2018 · 2 comments
Closed

skipping lines in a test #312

yonicd opened this issue May 1, 2018 · 2 comments

Comments

@yonicd
Copy link

yonicd commented May 1, 2018

covr stops on a fail in a test. is there a way to get the coverage of non failing tests?

for example if i have this in the tests, testthat will complete the calls to all the tests and show me which ones were skipped/failed/... , but covr::test_package() will force stop on the fail.

testthat::test_that('bad test',{

  expect_true(2+2!=4)

})

testthat::test_that('skip test',{
  
  x <- 2+2
  
})

from the examples in exclusions it looks like only R/* files are being affected.

@jimhester
Copy link
Member

This is working as intended, I would recommend you fix the failing tests or comment them out before trying to use coverage. Coverage isn't very useful if the code is wrong :)

@yonicd
Copy link
Author

yonicd commented May 16, 2018

it does seem like an odd question, the original query to this question came from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants