Timothy Burda wrote:
Recently, I converted to Nunit v2.2.5 and my unit tests stopped running.
...
Is there something I need to do additionally to make Nunit 2.2.5
work from within my Nant script.?
Yes. Create a config file for the .dll containing tests if you don't
already have one, and add a binding redirect to that as described at
http://nant.sourceforge.net/release/latest/help/tasks/nunit2.html .
In other words, if you have a .dll being tested named MyProject.dll, and
a .dll containing tests named MyProjectTests.dll, you'll create a file
named "MyProjectTests.dll.config, put it into the same directory as the
other .dlls, and then call the NUnit2 task. I don't think there's any
way to do this for more than one test assembly per <nunit2> task, but I
could be wrong.
Don't be confused by the use of "oldVersion" and "newVersion" in the
bindingRedirect. In this context, oldVersion represents the version
against which your .dll was built, 2.2.5.0, and newVersion represents
the one that will be used instead, namely the one that NAnt is linked
against, 2.2.0.0. I've gone around in circles on this one.
Gary
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users