1

I'm trying to integrate fitnesse with our cruisecontrol setup.

I'd like to have a set of acceptance tests that we develop before the features for the release are worked on. Develop our acceptance tests, run them against our nightly build (not on every check in, we have a job for that but I suspect our acceptance tests would slow that down too much).

So I want to be able to run the fitnesse test suite and not have it fail the build when some tests fail (the expectation is that some of the tests will fail, until we have finished the release).

I have the acceptance tests building on the integration server and the the fitnesse suite running from the command line (as an exec task in the integration job).

At the moment it is failing the build (runner.exe has a non-zero exit code when any test fails).

So... does anyone have a list of exit codes for fitsharp runner.exe? Is there any way to tell a cruisecontrol exec task that I really don't care about the return value from the job? Is there another cc.net task I should use instead?

Edit:
Current best idea is to wrap the fitsharp runner in a batch file or powershell script and swallow the return code from fitness
Edit2:
Return code from fitsharp runner.exe is the number of tests that failed (making setting the success return codes element for the cruisecontrol.net exec task difficult)

4

1 回答 1

0

我认为最好的方法是使用 nant,它与 ccnet 很好地集成在一起。您可以简单地告诉 nant exec 任务不要使构建失败,请参阅http://nant.sourceforge.net/release/latest/help/tasks/exec.html 当您接近发布时,只需将 failonerror 属性设置为真的。

于 2013-06-09T07:28:46.147 回答