e-learning

Python - Testing

Abstract

Here we will cover the basics of testing, an important part of software development. Testing lets you know that your code is correct in many situations that matter to you.

About This Material

This is a Hands-on Tutorial from the GTN which is usable either for individual self-study, or as a teaching material in a classroom.

Questions this will address

  • Does the code we develop work the way it should do?
  • Can we (and others) verify these assertions for themselves?
  • To what extent are we confident of the accuracy of results that appear in publications?

Learning Objectives

  • Explain the reasons why testing is important
  • Describe the three main types of tests and what each are used for
  • Implement and run unit tests to verify the correct behaviour of program functions

Licence: Creative Commons Attribution 4.0 International

Keywords: Foundations of Data Science, jupyter-notebook

Target audience: Students

Resource type: e-learning

Version: 2

Status: Active

Learning objectives:

  • Explain the reasons why testing is important
  • Describe the three main types of tests and what each are used for
  • Implement and run unit tests to verify the correct behaviour of program functions

Date modified: 2023-02-13

Date published: 2022-10-19

Authors: Helena Rasche, The Carpentries

Contributors: Bazante Sanders, Donny Vrins

Scientific topics: Software engineering


Activity log