We use the Gallio Plugin - and also we did a couple of tricks to get
both the XML and HTML versions of the test report.
Our Jenkins test runner is a windows batch task that does this:
:: "Set default run properties:"
set GALLIO="%PROGRAMFILES%\Gallio\bin\Gallio.Echo.exe" /report-
directory:"%WORKSPACE%\TestReports" /report-type:xml /
runner:IsolatedProcess /verbosity:debug YourUnitTestDell.dll
:: Run the tests
%GALLIO% /rnf:QuickTest /filter:Category:QuickTest
:: Store away the gallio exit code:
SET ERR1=%ERRORLEVEL%
:: "Now convert XML to more readable HTML: (Can be skipped, by
cancelling the build, but then no artifacts will be stored)"
cd "%WORKSPACE%\TestReports"
"%GALLIO_3_3_312%\bin\Gallio.Utility.exe" FormatReport QuickTest.xml /
rt:html
:: Make sure a failing test will fail the build:
EXIT /B %ERR1%
If you want builds with failing tests to go yellow, not green - simply
remove the last line (EXIT /B %ERR1%). That way the "ERRORLEVEL" of
the unit test batch command is allways 0 - build succeeds, but since
the XML shows failing tests, Jenkins will mark the build yellow.
> On Tue, May 10, 2011 at 3:49 AM, Luke Robertson <
lrobertso...@googlemail.com