Closed thekid closed 8 years ago
Instead of having to return test instances, sources can now choose to add test classes to the test suite. This greatly simplifies the code inside source implementations and reduces code duplication.
Before
Timm@slate ~/devel/xp/unittest [master] $ unittest src/test/php/ # ... ✓: 378/389 run (11 skipped), 378 succeeded, 0 failed Memory used: 4944.07 kB (5004.53 kB peak) Time taken: 0.119 seconds
After
$ unittest src/test/php/ # ... ✓: 378/389 run (11 skipped), 378 succeeded, 0 failed Memory used: 4923.72 kB (4984.18 kB peak) Time taken: 0.109 seconds
Released in 6.7.1 :shipit:
Instead of having to return test instances, sources can now choose to add test classes to the test suite. This greatly simplifies the code inside source implementations and reduces code duplication.
Performance / memory
Before
After