Added 'phing behat' command

This commit is contained in:
Ingo Schommer 2012-11-14 00:47:23 +01:00
parent 4e1e09de75
commit cb0726dae3
1 changed files with 21 additions and 0 deletions

View File

@ -133,6 +133,27 @@ Options:
<exec command="${phpunit_bin}" checkreturn="true" passthru="true" />
</target>
<target name="behat" if="basedir"
description="Runs behaviour tests through Behat, on the 'framework' and 'cms' modules (if available). Requires phpunit, composer and behat.">
<if>
<available file="${basedir}/framework/" type="dir" />
<then>
<echo msg="Testing 'framework' module" />
<exec command="vendor/bin/behat @framework" checkreturn="true" passthru="true" />
</then>
</if>
<if>
<available file="${basedir}/cms/" type="dir" />
<then>
<echo msg="Testing 'cms' module" />
<exec command="vendor/bin/behat @cms" checkreturn="true" passthru="true" />
</then>
</if>
</target>
<target name="tag" if="basedir"
description="Creates a new git tag in all the nested working copies (optionally pushes the created tag)"
depends="_gitRepositories,_gitBinary">