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 are closed.

Eric Morris at 17:28 on 4 Feb 2017

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.

Dana Luther at 18:41 on 4 Feb 2017

Short, sweet and to the point! It's nice to have such a clear example to go back with and implement.

Eric Poe at 22:57 on 4 Feb 2017

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.

Emil Gallant at 09:19 on 5 Feb 2017

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.