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

Ensures required packages are in Imports section #774

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

fix: ensure optional requirements in tests

4590f44
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Ensures required packages are in Imports section #774

fix: ensure optional requirements in tests
4590f44
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests Summary failed Aug 14, 2024 in 0s

2 fail, 145 pass in 13m 37s

  1 files   22 suites   13m 37s ⏱️
147 tests 145 ✅ 0 💤 2 ❌
478 runs  469 ✅ 0 💤 9 ❌

Results for commit 4590f44.

Annotations

Check warning on line 0 in shinytest2_tm_g_distribution

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

7 out of 8 runs failed: e2e_tm_g_distribution_Histogram_encoding_inputs_produce_output_without_validation_errors. (shinytest2_tm_g_distribution)

teal.modules.general.Rcheck/tests/testthat/junit-result.xml [took 1s]
Raw output
self$get_html(".shiny-output-error-validation") is not NULL ('test-shinytest2-tm_g_distribution.R:85:3')
self$get_html(".shiny-output-error-validation") is not NULL

`actual` is a character vector ('<div class="shiny-output-error shiny-output-error-validation shiny-output-error-try-error htmlwidgets-error" style="position: absolute; top: 1111px; left: 16px; max-width: 456px; height: 0px;">no applicable method for \'glance\' applied to an object of class "htest" \n when evaluating qenv code:\ntest_stats &lt;- ANL %&gt;% dplyr::select("BMRKR1", character(0), "ARM") %&gt;% dplyr::group_by_at(dplyr::vars(dplyr::any_of("ARM"))) %&gt;% dplyr::do(tests = generics::glance(do.call(stats::shapiro.test, list(.[["BMRKR1"]])))) %&gt;% tidyr::unnest(tests) %&gt;% dplyr::mutate_if(is.numeric, round, 3)</div>')
`expected` is NULL
No validation error is observed
Backtrace:
    ▆
 1. └─app_driver$expect_no_validation_error() at test-shinytest2-tm_g_distribution.R:85:3
 2.   └─testthat::expect_null(...)

Check warning on line 0 in shinytest2_tm_g_distribution

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Summary

2 out of 3 runs failed: e2e_tm_g_distribution_QQ_plot_encoding_inputs_produce_output_without_validation_errors. (shinytest2_tm_g_distribution)

teal.modules.general.Rcheck/tests/testthat/junit-result.xml [took 4s]
Raw output
self$get_html(".shiny-output-error-validation") is not NULL ('test-shinytest2-tm_g_distribution.R:120:3')
self$get_html(".shiny-output-error-validation") is not NULL

`actual` is a character vector ('<div class="shiny-output-error shiny-output-error-validation shiny-output-error-try-error htmlwidgets-error" style="position: absolute; top: 1017px; left: 16px; max-width: 456px; height: 0px;">no applicable method for \'glance\' applied to an object of class "htest" \n when evaluating qenv code:\ntest_stats &lt;- ANL %&gt;% dplyr::select("BMRKR1") %&gt;% with(., generics::glance(do.call(stats::shapiro.test, list(.[["BMRKR1"]])))) %&gt;% dplyr::mutate_if(is.numeric, round, 3)</div>')
`expected` is NULL
No validation error is observed
Backtrace:
    ▆
 1. └─app_driver$expect_no_validation_error() at test-shinytest2-tm_g_distribution.R:120:3
 2.   └─testthat::expect_null(...)