Permalink
Browse files

Added 'phing behat' command

  • Loading branch information...
1 parent 4e1e09d commit cb0726dae313770082a26149e09baeca85a3cbcc @chillu chillu committed Nov 13, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 build.xml
View
@@ -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">

0 comments on commit cb0726d

Please sign in to comment.