HDR UK Futures HDR UK Futures Testing in Research Workflows
  1. Example repositories

This site contains materials for the testing module on HDR UK’s RSE001 Research Software Engineering training course. It was developed as part of the STARS project.

  • When and why to run tests?
  • Case study
  • Introduction to writing and running tests
    • How to write a basic test
    • How to run tests
    • Parameterising tests
  • Types of test
    • Unit tests
    • Functional tests
    • Back tests
  • What was the point? Let’s break it and see!
  • Test coverage
  • Running tests via GitHub actions
  • Example repositories

Example repositories

This page signposts a handful of healthcare projects that include automated tests across different focuses, data types, and analysis techniques.

They are provided to give you inspiration and ideas for what you might want to test in your research projects.

Python examples

pydesrap_mms pydesrap_stroke

Analysis: SimPy discrete-event simulation models (nurse visit simulation and stroke capacity planning).

Tests: pytest

Authors: Amy Heather and Tom Monks

nhp_model

Analysis: Demand model for the New Hospital Programme (NHP).

Tests: pytest

Authors: The Strategy Unit

R examples

rdesrap_mms rdesrap_stroke

Analysis: Simmer discrete-event simulation models (nurse visit simulation and stroke capacity planning).

Tests: testthat

Authors: Amy Heather and Tom Monks

experiencesdashboard

Analysis: Shiny dashboard visualising and analysing patient experience data from the NHS England Friends and Family Test.

Tests: testthat

Authors: The Strategy Unit

NHSRwaitinglist

Analysis: Implements the waiting list management approach described in Fong et al.

Tests: testthat

Authors: Methodology presented by Neil Walton, and package contributed to by members of the NHS-R Community.

opencodecounts

Analysis: Yearly summaries of clinical code usage in England.

Tests: testthat

Authors: Arina Anna Tamborska, Rose Higgins, Yamina Boukari, Viveck Kingsley, Lola Ojedele, Kunle Oreagba, Jon Massey, Andrea Schaffer, Amelia Green, William Hulme, Brian MacKenna, Helen J Curtis, Louis Fisher, Milan Wiedemann.

Running tests via GitHub actions
 
  • Code licence: MIT. Text licence: CC-BY-SA 4.0.