I recently started using Behat with Mink in a PHP project that uses a Thin microphotograph. My Behat tests work fine, but I would like to run them as part of my build that uses Sebastian Bergman's Jenkins-PHP template.
To do this, I expect that I will need to start a web server to serve the Slim application. The obvious answer would be PHP 5.4 built into the web server, but I'm limited to PHP 5.3.
The only idea that I have at the moment is to have a deployment phase, according to which, if the Ant build passes, Jenkins deploys the workspace to the server and then runs Behat tests against it. It looks like it will be a lot of work and can be peeling, plus it would have to deploy another virtual machine, which I would prefer to avoid. We strive to use Behat in a wide variety of projects, so a one-off would be preferable.
What is the best way to solve this problem?
source
share