This repository contains scripts to aggregate
(source/parse_test_report.R) results from
{testthat} and
{covr} packages (see the
workflow: https://github.com/datashield/.github). There is a script to
render (source/render_docs.R) the results
committed by the pipeline to the logs/ directory. Also, a
template for a Quarto report
(source/test_report.qmd) to present the
results of the tests in a dashboard.
The workflow follows the following steps:
Repository with unit tests >>> Repository with results >>>
GitHub pages
-
Parse
./logs/and identify directories with a valid.xmlfile (testthatoutput).source("source/parse_logs.R") -
(Optional) To clear the repo from old intermediate outputs (
Rdsfiles), run the following before step 1:# delete old .Rds files in logs list.files("logs", ".Rds", ignore.case = TRUE, full.names = TRUE, recursive = TRUE) |> unlink() # delete old .csv files in logs list.files("logs", "results.csv", ignore.case = TRUE, full.names = TRUE, recursive = TRUE) |> unlink()
-
Render a website with all the test results:
Rscript --verbose --vanilla source/render_docs.R docs docs TRUE
