R Under development (unstable) (2024-08-27 r87062 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(eCerto) > > # setting this variable will suppress most eCerto message calls > Sys.setenv("GOLEM_CONFIG_ACTIVE"="default") > > ## run all tests similar to Ctrl+Shift+T in RStudio > # testthat::test_check(package = "eCerto", reporter=c("minimal", "location")) > > ## check for the code covered by test functions > # x <- covr::package_coverage(quiet = FALSE, function_exclusions = "page_*") > # covr::zero_coverage(x = x) > # covr::function_coverage(fun = eCerto:::app_server) > # covr::function_coverage(fun = eCerto:::list2rv, code = source("tests/testthat/test-list2rv.R")) > > ## tests with snaps fail upon "RCHECK" while being successful in "test_check" > ## setting R_TESTS avoids this problem > Sys.setenv(R_TESTS="") > > ## run all tests > # testthat::test_dir(path = "./tests/testthat") > testthat::test_dir(path = "./testthat") ✔ | F W S OK | Context ⠏ | 0 | ExcelUpload ⠋ | 1 | ExcelUpload ⠙ | 2 | ExcelUpload ⠸ | 4 | ExcelUpload ⠦ | 7 | ExcelUpload ✔ | 7 | ExcelUpload [2.0s] ⠏ | 0 | RData_export ✔ | 2 | RData_export ⠏ | 0 | Rdata_import ⠋ | 1 | Rdata_import ⠧ | 8 | Rdata_import ⠋ | 11 | Rdata_import ✔ | 12 | Rdata_import ⠏ | 0 | app_inits ✔ | 3 | app_inits ⠏ | 0 | app_utils ⠙ | 2 | app_utils ⠹ | 3 | app_utils ⠼ | 5 | app_utils ⠙ | 12 | app_utils ✔ | 13 | app_utils ⠏ | 0 | certification ⠋ | 1 | certification ✔ | 3 | certification [1.1s] ⠏ | 0 | fnc_CertValPlot ⠋ | 1 | fnc_CertValPlot ⠸ | 1 3 | fnc_CertValPlot ✔ | 1 3 | fnc_CertValPlot ⠏ | 0 | fnc_assert_col ✔ | 9 | fnc_assert_col ⠏ | 0 | fnc_calc_time_diff ✔ | 6 | fnc_calc_time_diff ⠏ | 0 | fnc_check_fmt_Vdata ✔ | 1 | fnc_check_fmt_Vdata ⠏ | 0 | fnc_digits_DIN1333 ✔ | 1 | fnc_digits_DIN1333 ⠏ | 0 | fnc_flt_Vdata ⠋ | 1 | fnc_flt_Vdata ✔ | 5 | fnc_flt_Vdata ⠏ | 0 | fnc_get_local_file ⠼ | 5 | fnc_get_local_file ✔ | 7 | fnc_get_local_file ⠏ | 0 | fnc_load_xlsx ⠋ | 1 | fnc_load_xlsx ⠼ | 5 | fnc_load_xlsx ⠧ | 8 | fnc_load_xlsx ✔ | 10 | fnc_load_xlsx ⠏ | 0 | fnc_plot_lts_data ⠴ | 1 5 | fnc_plot_lts_data ⠇ | 2 7 | fnc_plot_lts_data ✔ | 2 7 | fnc_plot_lts_data ⠏ | 0 | fnc_prepFigS1 ✔ | 4 | fnc_prepFigS1 ⠏ | 0 | fnc_prepFigS2 ⠼ | 5 | fnc_prepFigS2 ✔ | 6 | fnc_prepFigS2 ⠏ | 0 | fnc_prepFigS3 ✔ | 1 | fnc_prepFigS3 ⠏ | 0 | fnc_prepFigV2 ⠋ | 1 0 | fnc_prepFigV2 ✔ | 1 0 | fnc_prepFigV2 ⠏ | 0 | fnc_prepFigV3 ✔ | 1 0 | fnc_prepFigV3 ⠏ | 0 | fnc_prepTabC0 ✔ | 3 | fnc_prepTabC0 ⠏ | 0 | fnc_prepTabC1 ⠙ | 2 | fnc_prepTabC1 ✔ | 3 | fnc_prepTabC1 ⠏ | 0 | fnc_prepTabC2 ✔ | 4 | fnc_prepTabC2 ⠏ | 0 | fnc_prepTabH1 ✔ | 10 | fnc_prepTabH1 ⠏ | 0 | fnc_read_lts_input ⠋ | 1 | fnc_read_lts_input ⠸ | 4 | fnc_read_lts_input ✔ | 4 | fnc_read_lts_input ⠏ | 0 | fnc_read_zenodo [100%] Downloaded 10645 bytes... ⠋ | 1 | fnc_read_zenodo ✔ | 4 | fnc_read_zenodo ⠏ | 0 | fnc_round_DIN1333 ✔ | 1 | fnc_round_DIN1333 ⠏ | 0 | fnc_steyx ✔ | 6 | fnc_steyx ⠏ | 0 | fnc_styleTabC0 ⠋ | 1 | fnc_styleTabC0 ✔ | 5 | fnc_styleTabC0 ⠏ | 0 | fnc_styleTabC1 ⠋ | 1 | fnc_styleTabC1 ✔ | 1 | fnc_styleTabC1 ⠏ | 0 | fnc_styleTabC2 ✔ | 1 | fnc_styleTabC2 ⠏ | 0 | fnc_styleTabH1 ✔ | 5 | fnc_styleTabH1 ⠏ | 0 | fnc_styleTabH2 ✔ | 3 | fnc_styleTabH2 ⠏ | 0 | fnc_styleTabL1 ✔ | 1 | fnc_styleTabL1 ⠏ | 0 | help_the_user_modal ✔ | 4 | help_the_user_modal ⠏ | 0 | homogeneity ⠸ | 4 | homogeneity ⠼ | 5 | homogeneity ✔ | 5 | homogeneity ⠏ | 0 | list2rv ⠙ | 2 | list2rv ⠸ | 4 | list2rv ✔ | 5 | list2rv ⠏ | 0 | materialtabelle ⠋ | 1 | materialtabelle ✔ | 5 | materialtabelle ⠏ | 0 | mod_xlsx_range_select ⠋ | 1 | mod_xlsx_range_select ⠸ | 4 | mod_xlsx_range_select ⠴ | 6 | mod_xlsx_range_select ⠦ | 7 | mod_xlsx_range_select ⠧ | 8 | mod_xlsx_range_select ✔ | 8 | mod_xlsx_range_select [1.3s] ⠏ | 0 | page_start ✔ | 1 0 | page_start ⠏ | 0 | reactiveClass ⠧ | 8 | reactiveClass ✔ | 8 | reactiveClass ⠏ | 0 | run_app ✔ | 1 0 | run_app ⠏ | 0 | stability ⠋ | 1 | stability ✔ | 1 | stability ⠏ | 0 | statistic_helper ⠇ | 9 | statistic_helper ✔ | 27 | statistic_helper ⠏ | 0 | validation ⠼ | 5 | validation ⠇ | 9 | validation ✔ | 1 10 | validation ══ Results ═════════════════════════════════════════════════════════════════════ Duration: 11.9 s ── Skipped tests (8) ─────────────────────────────────────────────────────────── • On CRAN (8): 'test-fnc_CertValPlot.R:15:3', 'test-fnc_plot_lts_data.R:18:5', 'test-fnc_plot_lts_data.R:69:5', 'test-fnc_prepFigV2.R:7:5', 'test-fnc_prepFigV3.R:8:5', 'test-page_start.R:6:5', 'test-run_app.R:5:5', 'test-validation.R:34:5' [ FAIL 0 | WARN 0 | SKIP 8 | PASS 224 ] > > ## to run only test for a specific file use > # testthat::test_file(path = "tests/testthat/test-fnc_CertValPlot.R") > # testthat::test_file(path = "tests/testthat/test-statistic_helper.R") > # testthat::test_file(path = "tests/testthat/test-run_app.R") > > proc.time() user system elapsed 11.48 3.01 14.25