This is an archived version of the course. Please find the latest version of the course on the main webpage.

Week 8 Live Lecture

Software Testing Codes

Chapter : Week 8 Live Lecture

Sample Codes for Software Testing

face Ivan Procaccini Josiah Wang

Ivan has provided some sample codes using pytest.

Code from lecture

Here is the link to the repo containing sample code for the Shopping Cart demo. The full code can be found in the “solution” branch.

Real world examples

Below are real world examples of complex Python projects using pytest for testing. Ivan would also be delighted to see you contribute! (They are open source to all DoC students)

Backend

Materials API for Scientia: The backend API that handles course materials.

emarking API for Scientia: The backend API that handles coursework submissions.

Frontend

Scientia frontend: This contains some JS unit testing.