insightsengineering / tlg-catalog

A catalog of Tables, Listings and Graphs (TLGs) created with NEST R packages
https://insightsengineering.github.io/tlg-catalog/
Other
20 stars 8 forks source link

more robust test knitr template #231

Closed pawelru closed 8 months ago

pawelru commented 8 months ago

fix the following error:

[103/144] tables/efficacy/ratet01.qmd

  processing file: ratet01.qmd

  Quitting from lines 34-88 [variant1] (ratet01.qmd)
  Error:
  ! object 'result' not found
  Execution halted
  Error in `FUN()`:
  ! In path: "/__w/tlg-catalog/tlg-catalog/tlg.catalog.pkg.Rcheck/tests/testthat/setup.R"
  Caused by error:
  ! System command 'quarto' failed
  Backtrace:
       ▆
    1. ├─testthat::test_check(pkg_name, reporter = reporter)
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─quarto::quarto_render(...) at tests/testthat/setup.R:7:1
   15. │                         └─processx::run(quarto_bin, args, echo = TRUE)
   16. │                           └─throw(...)
   17. │                             └─base::signalCondition(cond)
   18. └─testthat (local) `<fn>`(`<systm___>`)
   19.   └─rlang::abort(...)
github-actions[bot] commented 8 months ago

Unit Tests Summary

  1 files  2 suites   54s :stopwatch:  24 tests 0 :white_check_mark:  24 :zzz: 0 :x: 290 runs  0 :white_check_mark: 290 :zzz: 0 :x:

Results for commit a9398eca.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 8 months ago

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
graph-snaps 💔 $3.73$ $+1.50$ $0$ $0$ $0$ $0$
markdown-snaps 💚 $51.29$ $-2.35$ $+1$ $+1$ $0$ $0$
Additional test case details | Test Suite | $Status$ | Time on `main` | $±Time$ | Test Case | |:-----|:----:|:----:|:----:|:-----| | graph-snaps | 💔 | $3.09$ | $+1.34$ | plot_v1 | | markdown-snaps | 💚 | $25.89$ | $-1.12$ | result_v1 |

Results for commit b1b3d2aea884336a6550a770b280030f3461dccd

♻️ This comment has been updated with latest results.