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

Dev 1074 #1079

Merged
merged 2 commits into from
Aug 8, 2023
Merged

Dev 1074 #1079

merged 2 commits into from
Aug 8, 2023

Conversation

VincentGuyader
Copy link
Member

No description provided.

ilyaZar and others added 2 commits August 8, 2023 13:12
* feature: improve is_exisiting_module()

    - make it self-check if is called inside an R package (by checking for existence of an R-directory)
    - improve docs: add information that it checks for the existence of a module /!\ file /!\ name which is not the same as a module
    - improve tests:
        - proper cleanup of a golem
        - check failure/error if not inside a R-package (in the above sense)

* tests: test create_if_need() function non-interactively

- must produce error when called non-interactively for argyment type="file"

* refactor: add clearer logic for create_if_needed() and test interactively 'no'

- allow mocking of user interaction with "no"-response for testing purposes
    - requires encapsulation of yesno() to a separate function
- restyle the file with grkstyler
- add a test that mimicks user interation with "no" response of the yesno()-function

=> improve test coverage to 60.09 %

* tests: add test for user interactive behavior "yes"

whereby improving coverage to 62.62 %

* refactor:

- shallow-test encapsulated function ask_golem_creation_file()
- remove redundant check_file_exist() which is never used inside `{golem}`!
- improve formatting of some comments inside create_if_needed()

=> improve test coverage to 67.79%

* tests: increaset R/utils.R coverage to 88.98%

- snapshot tests save the output of cli-messages and check options
    - if cli:: package changes we see a different output and the snapshots will inform about this
    - additionally check do_if_unquiet() feature of these message functions
@VincentGuyader VincentGuyader merged commit f468b76 into dev Aug 8, 2023
4 of 5 checks passed
@ColinFay ColinFay deleted the dev_1074 branch February 28, 2024 17:01
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