Open-Systems-Pharmacology / TLF-Library

TLF Library implementation in R
https://www.open-systems-pharmacology.org/TLF-Library/
Other
9 stars 6 forks source link

2 snapshot tests fail on a system #479

Open Yuri05 opened 10 months ago

Yuri05 commented 10 months ago
Failed tests ``` [ FAIL 2 | WARN 3 | SKIP 0 | PASS 352 ] == Failed tests =================================================================================================================== -- Failure (test-plot-grid.R:47:3): plots grid is rendered correctly ----------- Snapshot of `testcase` to 'plot-grid/plotgrid-works-as-expected.svg' has changed Run `testthat::snapshot_review('plot-grid/')` to review changes Backtrace: x 1. \-vdiffr::expect_doppelganger(...) at test-plot-grid.R:47:2 2. +-base::withCallingHandlers(...) 3. \-testthat::expect_snapshot_file(...) -- Failure (test-plot-grid.R:104:3): Plot Grid can have very long texts and contain plots with very long titles -- Snapshot of `testcase` to 'plot-grid/long-labels-in-plotgrid.svg' has changed Run `testthat::snapshot_review('plot-grid/')` to review changes Backtrace: x 1. \-vdiffr::expect_doppelganger("long labels in plotgrid", fig = plotGrid(plotGridObj)) at test-plot-grid.R:104:2 2. +-base::withCallingHandlers(...) 3. \-testthat::expect_snapshot_file(...) ```
Session info ``` > sessionInfo() R version 4.3.1 (2023-06-16 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server 2019 x64 (build 17763) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252 time zone: Etc/UTC tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] tlf_1.5.152 testthat_3.1.10 loaded via a namespace (and not attached): [1] gtable_0.3.3 jsonlite_1.8.7 crayon_1.5.2 dplyr_1.1.2 compiler_4.3.1 [6] ospsuite.utils_1.4.27 brio_1.1.3 tidyselect_1.2.0 Rcpp_1.0.11 stringr_1.5.0 [11] xml2_1.3.5 showtext_0.9-6 vdiffr_1.0.5 textshaping_0.3.6 systemfonts_1.0.4 [16] scales_1.2.1 ggplot2_3.4.3 R6_2.5.1 patchwork_1.1.3 commonmark_1.9.0 [21] labeling_0.4.2 generics_0.1.3 diffobj_0.3.5 showtextdb_3.0 ggtext_0.1.2 [26] tibble_3.2.1 desc_1.4.2 munsell_0.5.0 rprojroot_2.0.3 pillar_1.9.0 [31] rlang_1.1.1 utf8_1.2.3 stringi_1.7.12 xfun_0.40 cli_3.6.1 [36] withr_2.5.0 magrittr_2.0.3 grid_4.3.1 gridtext_0.1.5 rstudioapi_0.15.0 [41] markdown_1.7 lifecycle_1.0.3 waldo_0.5.1 sysfonts_0.8.8 vctrs_0.6.3 [46] glue_1.6.2 farver_2.1.1 ragg_1.2.5 fansi_1.0.4 colorspace_2.1-0 [51] tools_4.3.1 pkgconfig_2.0.3 ```
Yuri05 commented 10 months ago

when trying to execute testthat::snapshot_review('plot-grid/') to review changes, I get: "No snapshots to update"