-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
What happened?
In previous attempts to create testServer scenarios for module tm_a_regression the test pass when we call them using devtools::test() or similar but fail when called by covr::package_coverage.
The output error when using package_coverage is:
Error in `current[[1L]]`: object of type 'symbol' is not subsettable`
Tips to reproduce this issue:
- Add verifications of output in one
testServer:
output_result <- output_q()
testthat::expect_true(inherits(output_result, "teal_data"))
plot_result <- plot_r()
- Comment all other test in
test-tm_a_regression.R - Remove (temporarly) all other test files from folder
tests/testthatbut keep helper functions. (Hint in terminal:
mv test-tm_a_regression.R ../test-tm_a_regression.R
rm test*.R
mv ../test-tm_a_regression.R ./
- Run
covr::package_coverage(clean = FALSE)
Also of your interest:
- The error might be comming from this section of the module
- There was a similar error in another test file.
sessionInfo()
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
Reactions are currently unavailable