Introduction


Why Test My Code?


Simple Tests


Interacting with Tests


Unit tests & Testing Practices


Testing for Exceptions


Floating Point Data


Fixtures


Parametrization


Regression Tests


Continuous Integration with GitHub Actions


Figure 1

GitHub repository view with a green tick indicating a successful workflow run
GitHub repository view with a green tick indicating a successful workflow run

Figure 2

GitHub Actions Button
GitHub Actions button

Figure 3

Detailed view of a GitHub workflow run
Detailed view of a GitHub workflow run

Figure 4

Completed matrix tests.
Image showing completed matrix jobs.

Figure 5

Example of tests failing on pull requests.
Example of tests failing on pull requests.