Week 6 - Testing, Debugging and Maintainability
This week turns the Week 5 program into a tested and maintainable solution. The focus is on test planning, boundary data, debugging tools and explaining what you found.
Key knowledge and skills
- relevant test data: normal, boundary and invalid
- expected and actual results in a test table
- breakpoints and debugging output statements
- naming conventions, comments and maintainability
- identifying syntax, runtime and logic errors
Coding principles covered
- test before assuming the program is correct
- boundary values often reveal hidden bugs
- debug systematically by inspecting one part of the logic at a time
- readable names and useful comments make faults easier to trace
Useful theory pages
Task checklist
- [ ] Open the Week 6 programming task outline and complete the
Week6_Debuggingmodule using your Week 5 solution. - [ ] Run the tests, record actual results and fix any failures.
- [ ] Set a breakpoint in one validation method and add a short code comment explaining what you observed.
- [ ] Complete Section 6 Test Your Knowledge.
- [ ] Complete Section 6 Applied Task.
- [ ] Upload your tested program, test table evidence and your Section 6 responses to your GitHub repo.