-
-
Save ecentinela/2057046 to your computer and use it in GitHub Desktop.
Behat, Symfony2, Jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "${basedir}/src/My/FooBundle/Features/" -f junit --out "${basedir}/build/logs/behat"" /> | |
</exec> | |
</target> | |
.... | |
</project> | |
Configuration on Jenkins (Publish JUnit test results report) | |
build/logs/behat/*.xml | |
http://www.ld-host.de/uploads/images/ac7ea0419248c5dba3c943f25f46d8d7.png | |
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment