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

Fix 1121 broken use readme test #1122

Closed

Conversation

ilyaZar
Copy link
Contributor

@ilyaZar ilyaZar commented Nov 30, 2023

Fix #1121

Make all test for test-use_readme.R pass successfully in non-interactive mode.

Additionally, test a previously untested corner case.

Improves codecov for use_readme.R from 34.29% to 100%

build_readme causes an error if run non-interactively hence the skip_if_not(interactive()) is added in the first place

after deleting build_readme() the test passes non-interactively though
# Check if file exists
expect_true(file.exists(golem_sys("utils/empty_readme.Rmd")))
# Remove file via check_overwrite setting overwrite=TRUE
check_overwrite(TRUE, golem_sys("utils/empty_readme.Rmd"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue here is that the file will be removed from the installed package on the machine, so I'll rewrite this a bit :)

@ColinFay
Copy link
Member

Cherry picked in #1131

@ColinFay ColinFay closed this Feb 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants