10/10/2011 - 9:50 AM

Behat, Symfony2, Jenkins

Behat, Symfony2, Jenkins

Ant-Task which runs behat:

<?xml version="1.0" encoding="UTF-8"?>

<project name="Foo" default="build" basedir=".">


  <target name="behat">
      <exec dir="${basedir}/" executable="php" failonerror="true">
          <arg line="app/console -e=test behat &quot;${basedir}/src/My/FooBundle/Features/&quot; -f junit --out &quot;${basedir}/build/logs/behat&quot;" />



Configuration on Jenkins (Publish JUnit test results report)


After Running you can find Stats under your last build -> Test Results -> <root>

There will be a list of all Features and after Clicking on each feature you see the Scenarios and how long they took.