Error with automatic rerun of tests, 2.4.4

"Brad Stiles" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
Charlie,

I haven't posted on this before now because I haven't been able to 
consistently reproduce it, i.e. can't provide an exact recipe.

The folling Options=>Test Loader=>Assembly Reload options have been set 
from a previous run, and I've verified that they stick: "Reload before 
each test run", "Reload when test assembly changes" and "Rerun last 
tests run".

I load Visual Studio with my project, build once to ensure all 
assemblies are where they should be, then start up nunit.exe with the 
assembly to be tested provided on the command line.  I execute all the 
tests once, then switch over to VS.

I then engage in coding, periodically building to run the tests.  For a 
while, the tests will re-run automatically.  I can tell, because I 
sometimes change over to the NUnit gui to check a Console.Out or 
something, and can see that the test I added or broke from the last time 
is present and running.

However, at some point which may potentially pertain to time, or number 
of builds, or something else I haven't been able to determine, the 
re-runs stop.  I first noticed this behavior because I'd just coded a 
test and built, so expected it to fail.  When the task bar icon didn't 
flash at me, I switched over to see what was up.

I've see two results.  One is where the build succeeded (double checked 
it), but the NUnit gui shows the *previous* set of tests, all with green 
bars, as if the assembly hadn't been rebuilt or reloaded.  The other 
result is where NUnit apparently *loaded* the new tests, I can see the 
new one, but didn't run them, i.e. there's no test results.

I'm going to try different combinations of the Assembly Reload options 
to see if I can pin anything down.  I'm just letting you know in case 
anything jumps out at you before I can figure something out.

Thanks,
Brad 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.