# Intermittent failures after NUnit

**URL:** <https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814>\
**Category:** Bugs\
**Created:** [April 16, 2007, 10:18am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814 "2007-04-16T10:18:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [April 16, 2007, 10:18am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814/1 "2007-04-16T10:18:18Z")

</div>

Our nightly build is failing.&nbsp; I've constructed a bootstrap type script that sources/runs the build scripts for 3 projects.&nbsp; In the last one (but not the first) to run&nbsp; NUnit, it seems to fail after running it (NUnit).&nbsp; There are no errors reported by NUnit, but that script fails and therefore fails the entire run.

This is the last output from NUnit:

OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2 .NET Version: 2.0.50727.42

................................................

Tests run: 49, Failures: 0, Not run: 0, Time: 8.781 seconds

After this, the rest of the script fails.&nbsp; It appears that even though NUnit says the run was okay, either NUnit or FinalBuilder think there was a problem.&nbsp; I re-run the full build process by hand and everything is okay.&nbsp; That night, the build works okay.&nbsp; The next night it fails again.

I found that theres a FinalBuilder 5.192 - I can try that and let you know if I still get the problem.&nbsp; Should I try that?

&nbsp;

---

<div class="post-metadata">

**Author:** ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)\
**Post date:** [April 17, 2007, 3:51am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814/2 "2007-04-17T03:51:46Z")

</div>

Hi Brian,  
  
The NUnit action goes on the exit code from NUnit-Console.exe being zero (success), or non-zero (failure), the only exception being if “Fail if no tests pass” is on and no tests are run (in which case FinalBuilder outputs a specific error message “(No tests run)”.)  
  
What version of NUnit are you using? I had a quick look at a copy of the source code I have here, and the source seems fairly clear on returning 0 if there are no failures.  
  
There isn’t any script in any of the action’s script events in FinalBulder, is there? If there is, you’ll see an icon in the rightmost columns of the action entry in the Design page.  
  
The new FB 5 test build you mentioned (192) doesn’t have any changes which relate to the NUnit action in particular, but feel free to try it anyhow if you like.  
  
Regards,  
  
Angus

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [April 17, 2007, 3:21am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814/3 "2007-04-17T03:21:19Z")

</div>

Angus - thanks for the help.  
  
We’re running NUnit 2.2.9 for .Net 2.0  
  
No, there aren’t any scripts - we haven’t had a need for any yet.  
  
The only other thing I can think of that might possibly be of interest is that the NUnit action is the second action under an action group. The third and last action in the action group is an FxCop action that has been disabled. Finally, the next and last action group starts with a Visual Studio build.

---

<div class="post-metadata">

**Author:** ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)\
**Post date:** [April 18, 2007, 1:20am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814/4 "2007-04-18T01:20:26Z")

</div>

Hi Brian,  
  
I can’t think of anything else off the top of my head, sorry. Would you be able to zip up the FB project and log files (hopefully including a build history which shows the problem occuring) and email the lot to [support@finalbuilder.com](mailto:support@finalbuilder.com), please? We can take a look at it here.  
  
Regards,  
  
  
Angus

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [April 20, 2007, 9:15am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814/5 "2007-04-20T09:15:13Z")

</div>

After I did some clean up of NUnit test directories and logged the follow on build to a variable, we haven’t had a failure. I don’t know what to say… it’s okay now. Thank you for tyring to help. 🙂 – Brian

---

<div class="post-metadata">

**Author:** ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)\
**Post date:** [April 23, 2007, 1:18am UTC](https://www.finalbuilder.com/forums/t/intermittent-failures-after-nunit/2814/6 "2007-04-23T01:18:08Z")

</div>

Hi Brian,  
  
Thanks for keeping us up to date. Hopefully the problem won’t reoccur!  
  
Regards,  
  
Angus
