Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-06-2004, 07:28 PM
joes joes is online now
Registered User
 
Join Date: 11-17-2004
Posts: 13
Best way to end a build when you've decided a step should timeout?

I'm a new VBP user and I'm wondering what the best method is to define a timeout for an individual build step and then abort the build.

I'm having trouble with Nunit tests that fail but don't cause Nunit to finish executing and so the build just hangs there waiting for the Nunit process to finish.

Joe
Reply With Quote
  #2  
Old 12-07-2004, 11:00 AM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Hmm, the real fix would be to determine why the NUnit tests are hanging... But, in lieu of that optimal solution, here is a sample build that demonstrates a step timeout strategy. The sample uses Notepad.exe as the "NUnit test" so you'll need to do a little work to adapt it to NUnit...

Note: this sample demonstrates some advanced features of Visual Build Professional and uses WMI. These advanced VBP features include: scripting, Subroutines, Step script events (vbld_StepDone), use of the vbld_FSO script object, script in a conditional build rule, and more...
Attached Files
File Type: bld step timeout.bld (3.9 KB, 1790 views)

Last edited by kevina; 12-07-2004 at 11:25 AM.
Reply With Quote
  #3  
Old 12-07-2004, 12:59 PM
joes joes is online now
Registered User
 
Join Date: 11-17-2004
Posts: 13
I agree that the Nunit test needs to be fixed. I've run into the problem several times and I can't tell if it is the test or the test environment. The tests that cause this usually deal with threads or multiple processes so they are hard to debug.

Since Nunit was hanging, I wasn't even able to easily get the build log and see what the problem was.

What are the plans for an Nunit task in future versions?

Thanks for the build file. It looks like it will do the trick.

Last edited by joes; 12-07-2004 at 01:45 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:15 PM.


Copyright © 1999-2023 Kinook Software, Inc.