Skip to content

Commit

Permalink
does within break tests lol
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed May 15, 2024
1 parent df33240 commit 96b516d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
push:
branches:
- main
- testing_tests@main
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
with:
additional-env-vars: |
_R_CHECK_EXAMPLE_TIMING_THRESHOLD_=11
TESTING_DEPTH=5
TESTING_DEPTH=6
enforce-note-blocklist: true
publish-unit-test-report-gh-pages: false
junit-xml-comparison: false
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/helper-testing-depth.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ get_testing_depth <- function() {
#' By default `depth` argument lower or equal to 3 will not be skipped because by default `TESTING_DEPTH`
#' is equal to 3. To skip <= 3 depth tests then the environment variable has to be lower than 3 respectively.
skip_if_too_deep <- function(depth) { # nolintr
checkmate::assert_numeric(depth, len = 1, lower = 0, upper = 5)
checkmate::assert_numeric(depth, len = 1, lower = 0, upper = 6)
testing_depth <- get_testing_depth() # by default 3 if there are no env variable
if (testing_depth < depth) {
testthat::skip(paste("testing depth", testing_depth, "is below current testing specification", depth))
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-shinytest2-tm_front_page.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
app_driver_tm_front_page <- function() {
data <- simple_cdisc_data()
data <- within(data, {
attr(ADSL, "metadata") <- list("Author" = "NEST team", "data_source" = "synthetic data")
})
# data <- within(data, {
# attr(ADSL, "metadata") <- list("Author" = "NEST team", "data_source" = "synthetic data")
# })

init_teal_app_driver(
data = data,
Expand All @@ -22,7 +22,7 @@ app_driver_tm_front_page <- function() {
}

test_that("e2e - tm_front_page: Initializes without errors and check html elements", {
skip_if_too_deep(5)
skip_if_too_deep(6)
app_driver <- app_driver_tm_front_page()

app_driver$expect_no_shiny_error()
Expand Down

0 comments on commit 96b516d

Please sign in to comment.