Test-Driven Incremental Development

Test-driven incremental development means document, test, design, code, and check/fix statis analyasis errors for each function or method in your Python modules.

Development Sequence of Steps

Repeat the steps for each function/ method you develop:

  • Understand and document the problem that the function/method will solve
  • Develop tests with which you’ll test the solution
  • Design the computational steps that solve the problem
  • Implement the computation steps into correctly functioning code
    • debug the code
    • run the tests
    • do static code analysis to fix warning/errors reported in the Problems panel.

General guidelines:

  • Do not start the design OR implementation without having the testint funcdtions written and debugged.
  • When test cases are in place, do not start implementing without thinking through the computational steps that help you design the problem solution
  • Do not move on to the next function/method without verifying and fixing the static analysis warnings/errors.