When I run fitnesse tests from browser or via command line, the Runner.exe
process continues to run even when the fitnesse java process is closed. Is this
behaviour intended or is this a bug?
My batch file (runTests.bat) looks like:
PUSHD "..\..\Common\fitnesse"
java -jar fitnesse.jar -p 8888 -e 0 -c
Imaging.Component.RiskMitigation.Test007CommunicationError?test&format=text
POPD
taskkill /F /IM Runner.exe
This works so far. But when I try to replace the bat with an MsBuild script the
exec task which starts java does not return. Only if I kill the Runner.exe
manually, the MsBuild script continuous with the exec taskkill statement, which
does not make sense anymore:
<Target Name="run-one-fitnesse-test-text">
<Exec WorkingDirectory="..\..\Common\fitnesse" Command="java -jar
fitnesse.jar -o -p 8888 -e 0 -c
%22Imaging.Component.RiskMitigation.Test007CommunicationError?test%26format=text\
%22"/>
<Exec Command="taskkill /F /IM Runner.exe" IgnoreExitCode="true" />
</Target>
How can I execute the fitnesse test via MsBuild without using a bat file?