Talk in English - US at SunshinePHP 2017
Track Name:
Key Biscayne 1
View Slides: https://in2.se/2dvHbkE
Short URL: https://joind.in/talk/13672
(QR-Code (opens in new window))
Ever got the message "Fatal error: Out of memory" when running your unit tests? Or do you have to wait for more than 5 minutes for all of your unit tests to complete? We're using Docker to mitigate these and other issues. In this session I will show you how we have split up a single testsuite of 3K+ tests into manageable unit modules which are executed by Docker micro instances in parallel. And with this set up we test our application on the current PHP version, but it also allows us to test against a new major PHP version the moment it is released or even is available in beta.
Comments
Comments are closed.
This talk illustrates a little "thinking outside the box". Mr. van Dam uses Docker in a clever manner on a micro scale to solve his (and others') macro problem of increasing Unit Test efficiency. This technique is worth a look, no just for Unit Testing, but possibly other similar scenarios that can benefit from parallelliztion.
Short, sweet and to the point! It's nice to have such a clear example to go back with and implement.
I and several others had the same reaction: Holy ----! Excellent work. Great job setting up the problem and how you worked towards the solution.
I can't wait to bring this idea back to my team.
The solution presented was specific to unit testing, but it can be applied to many types of problems. This gave us a concrete plan for updating our test suites for increased efficiency.