adrianh/test-class — pull request #4 by miyagawa (2012-11-09 03:16:56+00:00)
Title: Move the test aggregator to BEGIN so that it gets preload friendly

This moves the test attribute collector to the BEGIN phase, so that even if Test::Class is loaded with eval() or after the fork, it should run fine.

All tests pass, and my sample test code that makes use of Test::Class runs fine as well. But I wouldn't be surprised if this breaks some obscure .t file with bunch of inline classes in it.

This patch is made per popular requests to make Test::Class forkprove friendly. I myself don't use Test::Class at all, but didn't want to add a special code to deal with Test::Class :)
https://github.com/miyagawa/forkprove/pull/7