Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research: Can we make coverage faster? #140

Closed
franzwilding opened this issue Jun 22, 2018 · 1 comment
Closed

Research: Can we make coverage faster? #140

franzwilding opened this issue Jun 22, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@franzwilding
Copy link
Member

No description provided.

@franzwilding franzwilding added this to the 0.5.4 milestone Jun 22, 2018
@stefan-kamsker stefan-kamsker modified the milestones: 0.5.4, 0.5.5 Jun 27, 2018
stefan-kamsker added a commit that referenced this issue Jun 27, 2018
stefan-kamsker added a commit that referenced this issue Jun 27, 2018
stefan-kamsker added a commit that referenced this issue Jun 27, 2018
stefan-kamsker added a commit that referenced this issue Jun 27, 2018
stefan-kamsker added a commit that referenced this issue Jun 27, 2018
stefan-kamsker added a commit that referenced this issue Jun 27, 2018
@stefan-kamsker
Copy link
Member

My outcome:

xdebug
is really slow, hard to speed that up with simple settings
Did a profiling to find the slowest tests, so maybe refacoring those would be a big improvment
phpunit.txt
https://github.com/johnkary/phpunit-speedtrap

Switch to phpdbg
ist really fast compared to xdebug, but there are problems with some limits (even on my local machine)
-open file limit (can be set with ulimit -n xy)
-memory exhausts on some tests
is PHP built in (if compiled)
fe. phpdbg -qrr phpunit-7.1.5.phar --coverage-html /var/www/report
https://docs.travis-ci.com/user/speeding-up-the-build/

Run tests in parallell
we can try to run tests in parallell
https://github.com/paratestphp/paratest
or check what symfony does https://github.com/symfony/symfony/blob/master/.travis.yml (seems complicated :))

@stefan-kamsker stefan-kamsker modified the milestones: 0.5.5, 0.6 Jul 2, 2018
@franzwilding franzwilding modified the milestones: 0.6, 0.5.7 Jul 19, 2018
franzwilding added a commit that referenced this issue Jul 19, 2018
…by disabling client reboot between requests
franzwilding added a commit that referenced this issue Jul 19, 2018
…ollection field type, as it is already passed to the validation function call. This way we can save some execution time
franzwilding added a commit that referenced this issue Jul 19, 2018
franzwilding added a commit that referenced this issue Jul 19, 2018
franzwilding added a commit that referenced this issue Jul 19, 2018
…travis mysql install script, we now use travis apt addon
franzwilding added a commit that referenced this issue Jul 19, 2018
…er. This closes #140

Feature/140 make coverage faster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants