xp-framework / unittest

Unittests for the XP Framework
0 stars 0 forks source link

Refactor: Provide test cases #10

Closed thekid closed 8 years ago

thekid commented 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.

Performance / memory

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
thekid commented 8 years ago

Released in 6.7.1 :shipit: