GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ResearchCodingClub/python-testing-for-research: A training course on the practical use of tests in research software.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

74 Commits
74 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
episodes
episodes
 
 
instructors
instructors
 
 
learners
learners
 
 
profiles
profiles
 
 
site
site
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
FIXME.Rproj
FIXME.Rproj
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
config.yaml
config.yaml
 
 
index.md
index.md
 
 
links.md
links.md
 
 

Repository files navigation

Python testing for research

A short course on the basics of software testing in Python using the pytest library.

This lesson uses The Carpentries Workbench template.

It is derived from the FAIR2 for Research Software training course python-testing-for-research by the University of Sheffield.

Course Description

Whether you are a seasoned developer or just write the occasional script, it's important to know that your code does what you intend, and will continue to do so as you make changes.

Software testing is a methodology of automatically ensuring that your code works correctly, without having to go back and manually verify after each change.

This course seeks to provide you with conceptual understanding and the tools you need to start ensuring the robustness of your code.

Contents

  • Basic tests
  • Running a test suite & understanding outputs
  • Best practices
  • Testing for errors
  • Testing floating point data
  • Fixtures
  • Parametrisation
  • Testing file outputs
  • Continuous integration & automatic test-running with GitHub

Contributions

Contributions are welcome, please refer to the contribution guidelines of how to do so and ensure that you adhere to the Code of Conduct.

Build the lesson locally

To render the lesson locally, you will need to have R installed. Instructions for using R with the Carpentries template is available on the Carpentries website. We recommend using the {renv} package.

After cloning the repository, you can set up renv and install all packages with:

renv::init()
# Optionally update packages
renv::update()

Once you have installed the dependencies, you can render the pages locally by starting R in the project root and running:

sandpaper::serve()

When building the site subsequently, you may need to run renv::activate() first.

This will build the pages and start a local web-server in R and open it in your browser. These pages are "live" and will respond to local file changes if you save them.

About

A training course on the practical use of tests in research software.

researchcodingclub.github.io/python-testing-for-research/

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.