This class introduces the essential principles, techniques and tools for testing Perl code and, in particular, the idea of designing applications, libraries, and frameworks by writing a test suite first.
Topics covered include:
- When, what, and how to test
- Designing the API by implementing a test suite
- Testing as a means of detecting design flaws
- Testing as a mechanism for detecting implementation flaws
- Testing as a maintenance tool
- Unit tests vs integration testing
- Maximizing and verifying your test coverage
- API-based testing
- Behavioural testing
- Data-driven testing
- Specification-based testing
- Common testing mistakes
- An overview of Perl’s standard testing framework (TAP)
- Four essential Perl testing modules (and two dozen highly useful ones)
1-day or 2-day seminar
Developers who what to improve the reliability, usability, and maintainability of their codebases, using a design-by-testing approach.