Skip to content

Commit

Permalink
loop test over all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Dec 9, 2021
1 parent 805f5da commit 03e712b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/testthat/test-report.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ test_that("draft can be created from template", {
})

test_that("parametrised report can be rendered", {
expect_invisible(
render_report(output_file = withr::local_tempfile(), quiet = TRUE)
purrr::walk(
.x = mc_langs,
.f = function(x) {
translator <- mc_translator()
translator$set_translation_language(x)
expect_invisible(
render_report(output_file = withr::local_tempfile(), quiet = TRUE)
)
}
)
})

0 comments on commit 03e712b

Please sign in to comment.