5. Testing
Contents
5. Testing#
Why test?
Unit testing and regression testing
Negative testing
Mocking
Debugging
Continuous Integration
Contents#
5.0 Introduction to testing (5 minutes)
5.1 How to test (15 minutes)
5.2 Testing frameworks (15 minutes)
5.3 Classroom exercise: energy calculation (30 minutes)
5.4 Mocking (15 minutes)
5.5 Using a debugger (10 minutes)
5.6 Continuous integration (5 minutes)
5.7 Recap example: Monte-Carlo (30 minutes)
Total time: 2 hrs 5 minutes
Exercises#
Classroom exercises are included inline in the modules. We recommend that instructors schedule the exercises to be done in groups during breaks in the taught content. However, it is important that participants also have some time away from their screens. Exercises can also be left as self-paced homework assignments if preferred.