Tag Archives: Behat

BDD PHP phpspec TDD Testing

Add value to legacy code using agile tools

Working with legacy code need not be the nightmare it is often portrayed as. Tools that are considered best practice for greenfield development can and should be used to support legacy codebases, and prepare them for new development to begin.

read more »

Jenkins Testing

Integrating Behat and Mink with JenkinsCI

Continuing on the theme of my previous two posts, I’ve finally got around to getting some test results from Behat into Jenkins. The tests I’ll implement in this post are pretty simplistic acceptance tests against a pre-populated server, testing against a server populated by the Jenkins job will have to wait for another time. read more »


Capturing screenshots with Mink, Sahi and PhantomJS

Following on from my previous post Headless Behat/Mink testing with Sahi and PhantomJS, I wanted to complete the final part of Ryan’s post concerning capturing a screenshot of the page which has failed a test. I had hoped this would be fairly simple, but the march of technology has made Ryan’s post almost obsolete. Also, I am not  fan of his technique, with involves injecting an element into the page from the Phantom setup script. This causes problems if your tests want to move between pages. read more »

Testing Tutorial

Headless Behat/Mink testing with Sahi and PhantomJS

We have been using Behat for acceptance testing at work for a while now, but rather informally. I have been interested in it from a CI point of view, especially as our longer term plan is to automate the deployment of several sites from a single codebase. A barrier to this, and to our more recent desire to use Vagrant for controlling our dev environments, was the way in which we were running JavaScript tests using Selenium and Firefox. Today, I decided to cut off the head. read more »