Skip to content

FederatedMethods/testsDashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataSHIELD logo

DataSHIELD tests Dashboard

This repository contains scripts to aggregate (source/parse_test_report.R) results from {testthat} and {covr} packages (see the workflow: .github/workflows/dsbase-test-suite.yaml OR .github/workflows/dsbaseclient-test-suite.yaml).

There is a script to render (source/build_site.R) the results committed by the pipeline to the logs/ directory. This script generates a Quarto webpage using the files in site.

To configure additional branches, commits or releases to be tested, please modify the config files inside .github:


Local testing

To render the website locally, run the following command inside the root directory:

system("Rscript source/build_site.R")

Then,

browseURL("docs/index.html")

NOTE: for faster deployment, you might want to edit source/parse_logs.R locally to only parse a subset of the logs. To do so, you can modify the following:

logs_dirs_versions |>
  purrr::map(find_latest_version) |>
  purrr::list_c() |>
  # dplyr::slice(7) |>                  <<<<------ THIS LINE
  .
  .
  .

Flow

The workflow runs the following steps:

Run unit tests & coverage [GHA] >>> Parse results >>> >>> Render Quarto webpage >>> Publish site [GitHub pages]

About

Reworked DataSHIELD tests dashboard

Resources

Stars

Watchers

Forks

Contributors

Languages