Testing (cont)
Testing happens at different stages in development:
- Unit tests on behaviour of components
- System tests on overall input/output behaviour
- System integration tests on interaction of components
- User acceptance tests to find out what they don't like
A useful approach for unit testing:
- start from lowest level functions
(don't call other functions)
- test each function as it is completed
(and "tick it off")
- use only tested functions in testing higher-level functions
|