[wp-unit-tests] [WordPress Unit Tests] #119: Make canonical tests faster
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 7 00:12:51 UTC 2012
#119: Make canonical tests faster
-------------------------+------------------
Reporter: kurtpayne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Canonical | Resolution:
Keywords: |
-------------------------+------------------
Comment (by kurtpayne):
Here's a quick before and after with the patch:
Before
{{{
Time: 02:04, Memory: 104.75Mb
... omitted ...
FAILURES!
Tests: 1266, Assertions: 5381, Failures: 6, Incomplete: 1, Skipped: 74.
}}}
After
{{{
Time: 01:27, Memory: 102.75Mb
... omitted ...
FAILURES!
Tests: 1194, Assertions: 5381, Failures: 6, Incomplete: 1, Skipped: 57.
}}}
Moving away from the data provider method is faster, but has comes with
side effects. Each array element can't be treated as it's own test, so
the number of tests (and skipped tests) is changed. The assertions
remains the same, though.
--
Ticket URL: <https://unit-test.trac.wordpress.org/ticket/119#comment:1>
WordPress Unit Tests <https://unit-test.trac.wordpress.org>
My example project
More information about the wp-unit-tests
mailing list