Summary and Schedule
This lesson provides an introduction to testing in the context of developing scientific software.
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. Introduction | Why do we test software? |
Duration: 00h 10m | 2. Working with Legacy Code |
What is legacy code? Why should you test legacy code before changing it? |
Duration: 00h 45m | 3. Test framework |
What is a test framework? How to write test cases using a test frmework? |
Duration: 01h 15m | 4. Test Driven Development |
Why should you write tests first? What are the 3 phases of TDD? |
Duration: 01h 45m | 5. Refactoring for Testing | Why are long methods hard to test? |
Duration: 02h 45m | 6. Testing Big Changes |
What does it mean if you have to change a lot of tests while adding
features? What are the advantages of testing an interface? |
Duration: 03h 45m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
- Install pytest
- Install Coverage.py