Patch includes ability to run code coverage.
I had trouble a little with integrating with autorun because autorun calls exit, this needs to fixed before this patch can be accepted.
Dependencies:
Smarty
SQLite
Each of these dependencies can be moved into optional implementations are replaced with simpler implementations.
I also attached script to run coverage on simpletest itself and the results.
Please be critical of patch, i won't be offended.
Code Coverage Feature Patch
File Added: coverage_report
The patch works, but is throwing notice errors repeatedly as it generates the coverage report:
Notice: Undefined offset: 478 in /Users/maetl/Projects/Web/tools/simpletest/simpletest/trunk/coverage.php on line 290
Call Stack:
0.0008 1. {main}() /Users/maetl/Projects/Web/tools/simpletest/simpletest/trunk/test/simpletest_coverage.php:0
0.0899 2. CoverageReporter->generate() /Users/maetl/Projects/Web/tools/simpletest/simpletest/trunk/test/simpletest_coverage.php:34
44.9249 3. CoverageReporter->generateCoverageByFile() /Users/maetl/Projects/Web/tools/simpletest/simpletest/trunk/coverage.php:249
44.9250 4. CoverageReporter->coverageByFileVariables() /Users/maetl/Projects/Web/tools/simpletest/simpletest/trunk/coverage.php:257
duplicated, I will at this tomorrow.
fixes notice errors, changed some files around
Update fix notice errors
File Added: simpletest-code-coverage-updated-01.patch
fix, use auto_prepend_file, not auto_append_file
File Added: coverage_report