Next | Pigs in Space | 35 |
Unit tests often have a lot of repeated and duplicated code
Rik's Test::Routine makes a test program into a class
The class is instantiated, and each test is a method of the test object
Test methods can invoke one another
The test object can have test data in it as attributes
Tests can load and run other tests
This leverages all of Moose's power in building and structuring tests
Next | Copyright © 2013 M. J. Dominus |