Basic Testing Framework in Perl
- Things we are going to test
- Testing a simple Perl module
- Calculator test
- Test with expected results
- More test cases, more output
- Complex output
- ok, not ok
- Print only ok/not ok
- Refactor - Write the ok function
- Introducing Test::Simple
- Test::Simple when everything is ok
- Test::Simple - missing test
- Test::Simple - too many tests
- Add names to the tests
- Exercise: Write tests for fibo
- Exercise: Write a test to test the Anagram checker
- Exercise: Enlarge the test
- Solution: Write tests for fibo
- Solution: Write a test to test the Anagram checker
- Solution: Enlarge our test suite
- Refactor larger test suite
- Forget about your "plan", use "no_plan"
- use BEGIN block with Test::Simple
- Put the test cases in an external file
- Large test suite
- Harness
- Harness on success
- Harness on too few tests
- prove
- Packaging as people do for CPAN
- Makefile.PL for ExtUtils::MakeMaker
- Makefile.PL for Module::Install
- Build.PL
- Directories under t and prove
- Simple CPAN-like module
- Commands for CPAN release
- Exercise: Add tests
- Test::Simple