-
Notifications
You must be signed in to change notification settings - Fork 11
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
More tests, quietly #168
More tests, quietly #168
Conversation
- `tag_version(force = FALSE)` succeeds when the tag exists and points to the head commit (#167).
@@ -24,7 +27,10 @@ collect_news <- function(messages) { | |||
} | |||
} | |||
|
|||
cli_alert_success("Found {.field {length(message_items)}} NEWS-worthy entries.") | |||
if (fledge_chatty()) { | |||
cli_alert_success("Found {.field {length(message_items)}} NEWS-worthy entries.") |
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.
btw I tried wrapping cli_alert()
into another function but it was a mess because of the glue-like stuff in cli_alert()
so it was simpler to use the conditional.
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.
Thanks, looks good. Would the tests benefit from local_demo_project()
?
I need to fix some tests actually 😅 |
such interesting failures 🙄 old[38:50] vs new[44:62]
" bump_version()"
"Message <cliMessage>"
" > Scraping 4 commit messages."
" v Found 2 NEWS-worthy entries."
+ " "
" -- Updating NEWS --"
+ " "
" > Adding new entries to 'NEWS.md'."
+ " "
" -- Update Version --"
+ " "
" v Package version bumped to 0.0.0.9001."
" > Adding header to 'NEWS.md'."
" > Committing changes."
+ " "
" -- Tagging Version --"
+ " "
" > Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'."
" ! Call `fledge::finalize_version()`."
"Output"
i.e. empty lines. |
@krlmlr the failure on Windows because Windows runs testthat 3.1.0 not testthat 3.1.1 😅 |
@krlmlr as this PR removes the empty lines it'd fix the problems on main. For reference r-lib/testthat#1509 |
Thanks! Let's deal with the problems in |
what problems? |
Fix #117
Fix #5
Fix #167