-
-
Notifications
You must be signed in to change notification settings - Fork 7
318: Increase Coverage beyond 80% #322
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
c4fc0e3
tests: load library testthat to simplify tests and reuse units.
c063bc9
tests: add snapshot test for standard_layout to increase coverage
bc96824
tests: add more scenarios for draggable_buckets to increase coverage
9b00ed4
tests: add more scenarios and snapshot tests for optionalInput functions
d78e6a1
tests: add more tests for verbatim_popup_ui and get_dt_rows in order …
0181418
[skip style] [skip vbump] Restyle files
github-actions[bot] ad29134
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] 39550e1
chore: fix lintr
c9d4904
Merge branch 'oriol.new_commit' into 318_coverage_unit_tests@main
6b78aac
fix: add conditional statement for running tests
osenan 4bc7adc
refactor: include local random seed to control random numbers and oth…
osenan e01cbe6
chore: remove nocov tags
osenan 2d3bdad
docs: update package documentation
osenan d0e3f82
tests: change uncontrolable snapshot tests
osenan 121ddae
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] 26a7ce6
tests: add test for white small well
osenan 4464af6
tests: refactor failing snapshot test for a simpler test
osenan 8d95268
chore: remove nocov comment
osenan fd3aa75
docs: update documenation
osenan b72eb28
tests: add more test for optionalSliderInput for conditionals to incr…
osenan bcadfa6
chore: fix lintr errors
osenan fbf8fd5
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] 3b39663
refactor: reorder calls and use testthat as is loaded in the same script
osenan 0dac843
tests:
osenan 5168efb
chore: call testthat edition 3 in DESCRIPTION not in tests
osenan fc77004
Merge branch 'main' into 318_coverage_unit_tests@main
osenan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| Closeable | ||
| Draggable | ||
| draggable | ||
| Forkers | ||
| funder | ||
| Hoffmann | ||
| optionalSelectInput | ||
| optionalSliderInput | ||
| optionalSliderInputValMinMax | ||
| POSIXt | ||
| UI | ||
| draggable | ||
| funder | ||
| pre | ||
| UI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| pkg_name <- "teal.widgets" | ||
| library(pkg_name, character.only = TRUE) | ||
| testthat::test_check(pkg_name) | ||
| if (!is.null(requireNamespace("testthat"))) { | ||
| library(testthat) | ||
| test_check(pkg_name) | ||
| } else { | ||
| message("Please install testthat to run tests") | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # snapshot test for optionalSliderInput | ||
|
|
||
| Code | ||
| as.character(optionalSliderInput("my slider", "my label", 0, 10, 2)) | ||
| Output | ||
| [1] "<div class=\"form-group shiny-input-container\">\n <label class=\"control-label\" id=\"my slider-label\" for=\"my slider\">my label</label>\n <input class=\"js-range-slider\" id=\"my slider\" data-skin=\"shiny\" data-min=\"0\" data-max=\"10\" data-from=\"2\" data-step=\"1\" data-grid=\"true\" data-grid-num=\"10\" data-grid-snap=\"false\" data-prettify-separator=\",\" data-prettify-enabled=\"true\" data-keyboard=\"true\" data-data-type=\"number\"/>\n</div>" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # snapshot test for verbatim_popup_ui | ||
|
|
||
| Code | ||
| verbatim_popup_ui("STH", "STH2") | ||
| Output | ||
| <button class="btn btn-default action-button teal-widgets-busy-disable button" id="STH-button" type="button">STH2</button> | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Snapshot test for white_small_well | ||
|
|
||
| Code | ||
| white_small_well() | ||
| Output | ||
| <div class="well well-sm" style="background-color: white;"></div> | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.