How to write JavaScript-style test watchers in PHP

Christoper Pitt published another excellent piece over at Sitepoint. This time he describes how he built a watcher to automatically recompile his preprocessed code and rerun the tests. In order to reduce the burden of invoking the transformation scripts, boilerplate projects have started to include scripts to automatically watch for file changes; and thereafter invoke […]

Continue reading →

Visualizing PHPUnit Tests

In an article on the Hackster.io site explains in detail how he made a nice visualization of unit test results. Pretty cool what you can do with a raspberry pi, some LEDS and a couple of scripts. I wanted to create a desktop gadget to visualize the progress of unit tests run via PHPUnit.I’ve named […]

Continue reading →

The Magic Tricks of Testing

In a mail sent to all subscribers on the testdrivenlaravel.com-mailinglist Adam Wathan mentioned a talk Sandi Metz gave a couple of years ago at Rails Conf. It’s a really good talk that explains in a clear way when and what you should test. Tests are supposed to save us money. How is it, then, that […]

Continue reading →

Solidify Fragile Tests

Joe Ferguson shares a tip on how to make a version of PHPUnit’s assertArraySubset where the order of the array does not matter. The problem with this test is that `assertArraySubset()` will fail if the items in the array are out of order. And since we don’t have an `ORDER BY` on our query in […]

Continue reading →

Two tips to speedup your Laravel tests

I’ve seen two different tips for speeding up your tests in Laravel in the past week and thought I’d share them with you. For me, they made a significant impact on the speed of my tests. https://driesvints.com/blog/two-tips-to-speedup-your-laravel-tests/ Freek Van der Herten Freek Van der Herten is a partner and developer at Spatie, an Antwerp based […]

Continue reading →

Facebook’s mobile device lab

As a user I’ve pretty much turned my back to Facebook, but boy must it be interesting to work at that scale. Here’s how Facebook built their mobile device lab. … We needed to be able to run tests on more than 2,000 mobile devices to account for all the combinations of device hardware, operating […]

Continue reading →