Skip to content

Commit

Permalink
test(quarto): fix ci running on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mutlusun committed Oct 30, 2024
1 parent 03848a3 commit 52b8398
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/testthat/test-tar_quarto.R
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,14 @@ targets::tar_test("tar_quarto() reruns if target changes in included file", {
expect_equal(sort(progress$name), sort(c("data", "report")))
out <- targets::tar_read(report)
out <- setdiff(out, "main_files")
expect_equal(sort(basename(out)), sort(c("main.html", "main.qmd", "file1.qmd")))
if (identical(tolower(Sys.info()[["sysname"]]), "windows")) {
expect_equal(
sort(file.path(basename(dirname(out)), basename(out))),
sort(c("./main.html", "./main.qmd", "./file1.qmd"))
)
} else {
expect_equal(sort(basename(out)), sort(c("main.html", "main.qmd", "file1.qmd")))

Check warning on line 527 in tests/testthat/test-tar_quarto.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/test-tar_quarto.R,line=527,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 84 characters.
}
# Should not rerun the report.
suppressMessages(targets::tar_make(callr_function = NULL))
progress <- targets::tar_progress()
Expand Down

0 comments on commit 52b8398

Please sign in to comment.