Generally I run all my tests from within Visual Studio triggered by some add-in such as Resharper or TestDrive.Net , however have been unable to get SpecFlow tests/specs executing with the VS IDE, hence I've returned to NUnit GUI runner to execute my tests.
I stumbled across a neat option in the NUnit Gui Runner yesterday and thought it was noteworthy as it's handy to know during test development. Each and every time my tests change and I build the test assembly we can get the Nunit Gui Runner to reload the test assembly and then re-run. NUnit has some options
Under the NUnit settings > Test oader > Assembly Reload, tick all the tick boxes
Test Loader Settings - Assembly Reload
Assembly Reload
If Reload before each test run is checked, a reload will occur whenever the run button is pressed whether the assemblies appear to have changed or not.
If Reload when test assembly changes is checked, assemblies are watched for any change and an automatic reload is initiated. This item is disabled on Windows 98 or ME.
If Re-run last tests run is checked, tests are re-run whenever a Reload takes place.

0 comments:
Post a Comment