Testing and refactoring scripts
Last updated on 2026-05-09 | Edit this page
Estimated time: 44 minutes
Overview
Questions
- How to safely extend the functionality of a working script?
- How do I make sure that my code is still working when its size grows?
- How do I restructure my code so that it is readable, modular and reusable?
Objectives
- Develop a suite of tests that checks the correct functioning of the generated code.
- Evaluate the quality of the tests.
- Extend the functionality of the generated code by devising a plan and using test driven development.
- Modify the structure of the generated code to improve its quality without breaking its functionality.
Introduction
Test-driven development