-
Notifications
You must be signed in to change notification settings - Fork 24
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
Test coverage using covr #431
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #431 +/- ##
==========================================
- Coverage 11.90% 11.21% -0.69%
==========================================
Files 8 8
Lines 294 312 +18
==========================================
Hits 35 35
- Misses 259 277 +18
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Since this PR depends on the change done to |
Co-authored-by: Jakub Nowicki <kuba@appsilon.com>
Added parameters to
|
…nt of box modules
…eload() calls in test files
@Johan-rosa Any comments on the covr-related functions? Message in private if necessary. |
We're using these changes and everything is working as expected. Great job! |
Changes
Two functions.
covr_r()
covr_report()
Requires
Appsilon/covr@klmr-box-support
Take Note
Need some advice how to add this to the documentation
With
box
an exported variable and a module can have the same name. For example,With
testthat
this is not a problem. But, this will throw a test fail insidecovr
. Inside acovr
run, the call toexample_name
returns thebox
module, not the variable object. A solution is to use aliases in the unit test:Closes #99
How to use
Inside a rhino app
covr
package.covr
,devtools::install_github("Appsilon/covr@klmr-box-support")
orremotes::install_github("Appsilon/covr@klmr-box-support")
rhino::covr_r()
to run a coverage testrhino::covr_report()
to produce an HTML report