Re: Visual studio doubleclick on failed test
"Charlie Poole" <[email protected]> Thu, 4 Sep 2008 09:10:41 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <006e01c90ea8$c9553930$6401a8c0@ferrari> |
Hi Jay, NUnit doesn't really do anything to get VS to display the output. It just produces debug output as the test is run and if a debugger is attached, you get to see it. So running as a post-build step, you don't get the output in VS. There are other ways to attach a program for viewing trace output, but I imagine it's the VS integration you are looking for. That won't be available until a future release. BTW, running NUnit as a post-build step is a clever idea that many of our users have come up with independently, and which as been written up on several blogs. It's NOT how we thought NUnit would be run under VS, however, which may explain why it doesn't work as smoothly as you would like. The alternative approach is to run NUnit as the debug program for your test assembly. Charlie > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf > Of Jay Lemmon > Sent: Thursday, September 04, 2008 1:31 AM > To: [email protected] > Subject: [Nunit-users] Visual studio doubleclick on failed test > > In the documentation > (http://www.nunit.org/index.php?p=vsSupport&r=2.4.8), under > the section "Using Console Interface to Debug Applications", it says: > > "When the nunit-console program is run in debug mode under > Visual Studio, it detects that it is running in this mode and > sends output to the Visual Studio output window. Output is > formatted so that double clicking any error or failure > entries opens the appropriate test file at the location where > the failure was detected." > > Does that mean that feature occurs if the console-runner is > run with the debugger attached? Is there a way to force this > feature, so I'll get this behavior when I run the console as > a post build step? > > > > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nunit-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nunit-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/