[Pdx-pm] Rearranging tests
randall at sonofhans.net
Sun Nov 13 14:13:04 PST 2005
On Nov 13, 2005, at 11:50 AM, Andrew Savige wrote:
> Though it may be convenient to run them in a particular order, a
> "good" property of a test suite is "test isolation"; that is, you
> should be able to run the tests in any order (the --shuffle option
> of Test::Harness prove command helps test that property).
josh (can i get a witness?) and i discovered this the hard way last
year, working on a project with over 5k unit tests. granularity and
repeatability are exactly as important as coverage and correctness.
having said that, i really like the \d+\w+ naming scheme. e.g.:
0xx_xxx : test the test system and base classes
1xx_xxx : test the primary objects
8xx_xxx : reports and static data
9xx_xxx : automated interface tests
having a consistent naming scheme makes it much easier to work with a
few dozen test files.
More information about the Pdx-pm-list