|
From: Edward Z. Y. <edw...@th...> - 2008-12-21 22:32:35
|
Hello Pavel, I've been doing some magic to turn test data files (very common when testing complex algorithms) into first-class test suites. Something that came up was that test suites I generated with eval() did not get slurped by autorun. I took a look at autorun.php and this was because autorun ran a regex on the original file to see whether or not a newly declared class was found. It seems to me that this check is unnecessary. If aggregate tests are declared with addFile() (I don't see why they wouldn't be), deeper test files are included after autorun has calculated suitable candidates. Furthermore, we could implement aggregate tests simply by *including* the other test files (no need to create all those classes). But the main reason is because I find it bothersome to work around. :-) I've removed it for now, but please revert me if you decide that it is still a good idea. Cheers, Edward P.S. I've CC'ed simpletest-support. |