Automating Fit Tests in Fitnesse Server from Cruise Control, Hudson, Bamboo via Ant
Here’s an example of calling Fit tests defined in Fitnesse from Ant. This can be called from a continuous integration server like cruise control, hudson, bamboo, luntbuild, pmeasy:
<target name="fitnesse-tests" description="fitnesse-tests target can be called from CC" depends="custom-init, compile-fit" > <java classname="fitnesse.runner.TestRunner" fork="true" resultproperty="FitRegressionResult"> <arg line="-results fit-tests/reports/fitnesse-results.html 10.99.99.99 80 FitnessePageName"/> <classpath><path refid="custom.classpath" /></classpath> </java> <!-- xml file processed by cruise control --> <java classname="fitnesse.runner.FormattingOption" fork="true"> <arg line="fit-tests/reports/fitnesse-results.html xml ${fit.report.dir}/fit-results.xml 10.99.99.99 80 FitnessePageName"/> <classpath><path refid="custom.classpath" /></classpath> </java> <!-- fail if any fit test errors --> <condition property="fit-failures"> <equals arg1="${FitRegressionResult}" arg2="0"/> </condition> <fail message="${FitRegressionResult} Fitnesse test(s) failed." unless="fit-failures" /> </target>
Fitnesse is an excellent communication and collaboration tool between developers, QA and clients. It works well in agile development environments where emphasis and priority is put on automating tests.
If you have any questions, feel free to contact Todd McGrath at http://www.supergloo.com/contact.htm




