HDR UK Futures HDR UK Futures Testing in Research Workflows

    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?
    • Introduction to writing and running tests
      • How to write a basic test
      • How to run tests
      • Parameterising tests
    • Types of test
      • Functional tests
      • Unit tests
      • Back tests
    • Test coverage
    • Running tests via GitHub actions
    • Example repositories

    About this course

    Testing is an essential part of reproducible and reliable research. This practical course explains how to write and run tests, covering key ideas such as unit and integration testing, test coverage, and automated testing with GitHub Actions. Using hands-on examples in Python and R, you’ll learn how to build tests and include them in your research workflow.

    Instructors

    Amy

    Amy Heather

    Postdoctoral Research Associate at the University of Exeter

    ORCID GitHub LinkedIn

    Tom

    Tom Monks

    Associate Professor of Health Data Science at the University of Exeter

    ORCID GitHub LinkedIn

    Funding

    This course was developed as part of the STARS project. STARS is supported by the Medical Research Council [grant number MR/Z503915/1].

    Sharing Tools and Artefacts for Reproducible & Reusable Simulations in healthcare