-
-
Notifications
You must be signed in to change notification settings - Fork 5
267 add unit test@main #293
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
Conversation
Unit Tests Summary 1 files 184 suites 1m 16s ⏱️ Results for commit d75819f. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit f227bc0 ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayogasekaram thanks for adding the tests! it looks like one of the new tests is failing. can you take a look? thanks!
Hey @ddsjoberg! I think the test is failing because the function doesn't tolerate 'NA' values in the weight argument. I added the test to show that behavior if the function needed to be adapted. If we are expecting an error - should I change the test to expect_error? |
Thanks @ayogasekaram ! Can we add a check and give nice messaging to the user for this case? |
Signed-off-by: Daniel Sjoberg <[email protected]>
…ng/cardx into 267_add_unit_test@main
Code Coverage Summary
Diff against main
Results for commit: d75819f Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ayogasekaram !
closes #267
Pre-review Checklist (if item does not apply, mark is as complete)
usethis::pr_merge_main()
ard_*()
function was added, it passes the ARD structural checks fromcards::check_ard_structure()
.ard_*()
function was added,set_cli_abort_call()
has been set.ard_*()
function was added and it depends on another package (such as,broom
),is_pkg_installed("broom")
has been set in the function call and the following added to the roxygen comments:@examplesIf do.call(asNamespace("cardx")$is_pkg_installed, list(pkg = "broom""))
devtools::test_coverage()
Reviewer Checklist (if item does not apply, mark is as complete)
devtools::test_coverage()
When the branch is ready to be merged:
NEWS.md
with the changes from this pull request under the heading "# cardx (development version)
". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.md
for examples).