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

Increase test covr. for with_opt.R from 22.58% to 100% [FR] #1065

Closed
ilyaZar opened this issue Jul 6, 2023 · 1 comment
Closed

Increase test covr. for with_opt.R from 22.58% to 100% [FR] #1065

ilyaZar opened this issue Jul 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ilyaZar
Copy link
Contributor

ilyaZar commented Jul 6, 2023

Is your feature request related to a problem? Please describe.
No specific bug, but increasing the code coverage for this file might be generally useful since it has functions that the user interacts with.

Describe the solution you'd like
Add tests so that coverage is 100%.

Additional context
Can be fixed via #1066

@ilyaZar ilyaZar added the enhancement New feature or request label Jul 6, 2023
ilyaZar added a commit to ilyaZar/golem that referenced this issue Jul 6, 2023
- change filename: testthat style suggets "test-with_opt.R" to test functions in a file named "with_opt.R"

- improve tests for maintenance mode to see whether it works with setting options in a fresh golem
- add tests for SHINY_PORT

Refs: ThinkR-open#1065
ilyaZar added a commit to ilyaZar/golem that referenced this issue Jul 7, 2023
- change filename: testthat style suggets naming "tests/test-with_opt.R" to test functions in a file named "R/with_opt.R"
- improve tests for maintenance mode to see whether it works with setting options in a fresh golem
- add tests for "SHINY_PORT"

Refs: ThinkR-open#1065
VincentGuyader pushed a commit that referenced this issue Aug 8, 2023
* tests: add tests to increase test coverage

- change filename: testthat style suggets naming "tests/test-with_opt.R" to test functions in a file named "R/with_opt.R"
- improve tests for maintenance mode to see whether it works with setting options in a fresh golem
- add tests for "SHINY_PORT"

Refs: #1065

* tests: add tests to further increase coverage

Add a test for get_golem_options() function which was untested before.

* tests: test with_golem_options() with print=TRUE

- formatting with grk
- update comments to explain the test
- update the SHINY_PORT test to actually test the behaviour properly
- add a new test to check whether print=TRUE works inside with_golem_options()
VincentGuyader added a commit that referenced this issue Aug 8, 2023
…1080)

* tests: add tests to increase test coverage

- change filename: testthat style suggets naming "tests/test-with_opt.R" to test functions in a file named "R/with_opt.R"
- improve tests for maintenance mode to see whether it works with setting options in a fresh golem
- add tests for "SHINY_PORT"

Refs: #1065

* tests: add tests to further increase coverage

Add a test for get_golem_options() function which was untested before.

* tests: test with_golem_options() with print=TRUE

- formatting with grk
- update comments to explain the test
- update the SHINY_PORT test to actually test the behaviour properly
- add a new test to check whether print=TRUE works inside with_golem_options()

Co-authored-by: Ilya Zarubin <[email protected]>
@ilyaZar
Copy link
Contributor Author

ilyaZar commented Aug 9, 2023

Closed via #1066 #1080

@ilyaZar ilyaZar closed this as completed Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant