Search the web
Sign In
New User? Sign Up
fitnesse

Group Information

  • Members: 2464
  • Category: Testing
  • Founded: Feb 26, 2003
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
fitsharp Runner.exe is not terminating   Message List  
Reply Message #18763 of 18843 |
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?




Thu Jan 26, 2012 11:18 am

svengrand
Offline Offline
Send Email Send Email

Message #18763 of 18843 |
Expand Messages Author Sort by Date

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...
svengrand Offline Send Email Jan 26, 2012
1:38 pm

I found the reason why the Runner.exe process has not terminated after all tests have finished. The reason is that the code under test has started a thread...
Sven
sven_net_dev Offline Send Email
Feb 10, 2012
3:20 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help