Skip to content

datashield/testStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataSHIELD logo

DataSHIELD packages tests’ status

dsbase test suite

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


Render locally

  1. Parse ./logs/ and identify directories with a valid .xml file (testthat output).

    source("source/parse_logs.R")
  2. (Optional) To clear the repo from old intermediate outputs (Rds files), 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()
  3. Render a website with all the test results:

    Rscript --verbose --vanilla source/render_docs.R docs docs TRUE

About

Detailed output of DataSHIELD continuous integration tests

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages