Optimize plugin phpunit test suite startup speed
-
Hi,
I’m using the basic test setup from https://develop.svn.wordpress.org/trunk/ but with my own tests. However, startup time is about 15 seconds and that seems a bit much … ?
Here’s my setup:
– I have a single test that just checks if my plugin is active
– I echo the time at the beginning and end ofbootstrap.php. That’s only 3 seconds. After that it takes ~10s untilPHPUnit 4.6.10 by Sebastian Bergmann and contributors.appears. What’s happening in that time and can I speed it up?vagrant@vvv:/my/plugin$ phpunit tests/phpunit/void_test.php
start bootstrap 1435391893.2444
Installing…
Running as single site… To run multisite, use -c tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use –group ajax.
Not running ms-files tests. To execute these, use –group ms-files.
Not running external-http tests. To execute these, use –group external-http.finish bootstrap 1435391896.1637
PHPUnit 4.6.10 by Sebastian Bergmann and contributors.Configuration read from /srv/www/podlove-publisher/htdocs/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/phpunit.xml
.
Time: 17.27 seconds, Memory: 30.00Mb
OK (1 test, 1 assertion)
The topic ‘Optimize plugin phpunit test suite startup speed’ is closed to new replies.