Re: Console output format and Visual Studio (2005)
"Jocelyn Legault" <[email protected]> Tue, 9 Sep 2008 19:29:42 -0600
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0506677383== Content-Type: multipart/alternative; boundary="----=_Part_67033_18541789.1221010182828" ------=_Part_67033_18541789.1221010182828 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Anyone? On Mon, Sep 8, 2008 at 10:01 PM, Jocelyn Legault <[email protected]>wrote: > Hello. > > I'm new to NUnit (and to C# in general). I'm currently trying to integrate > NUnit with my project, using it as a post-build step to run the tests. > > From the local documentation file > file:///C:/Program%20Files/NUnit%202.4.7/doc/vsSupport.html (also on the web > at http://www.nunit.org/index.php?p=vsSupport&r=2.2), it is stated that: > > *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.* > > > To me, that means that the output should be such as: > C:\Projects\tests\TestNUnit\TestNUnit\Program.cs(24,10): error CS1002: ; > expected > > But instead, what I get is: > at TestNUnit.MyFirstTest.Test1() in > C:\Projects\tests\TestNUnit\TestNUnit\Program.cs:line 23 > which is sadly not recognized by MSDev. > > FYI, the post-build event command line that I use is: > "C:\Program Files\NUnit 2.4.7\bin\nunit-console.exe" $(ProjectPath) /nologo > > > Is there some switch I should use to format the output? I've looked at the > options and I haven't seen anything that seems to do that. > > Thanks, > > joce. > ------=_Part_67033_18541789.1221010182828 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div dir="ltr">Anyone?<br><br><div class="gmail_quote">On Mon, Sep 8, 2008 at 10:01 PM, Jocelyn Legault <span dir="ltr"><<a href="mailto:[email protected]">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div dir="ltr">Hello.<br><br>I'm new to NUnit (and to C# in general). I'm currently trying to integrate NUnit with my project, using it as a post-build step to run the tests.<br><br>From the local documentation file file:///C:/Program%20Files/NUnit%202.4.7/doc/vsSupport.html (also on the web at <a href="http://www.nunit.org/index.php?p=vsSupport&r=2.2" target="_blank">http://www.nunit.org/index.php?p=vsSupport&r=2.2</a>), it is stated that:<br> <br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><i>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.</i></blockquote><div><br>To me, that means that the output should be such as: <br><font face="courier new,monospace">C:\Projects\tests\TestNUnit\TestNUnit\Program.cs(24,10): error CS1002: ; expected<br> <font face="arial,helvetica,sans-serif"><br>But instead, what I get is:<br><span style="font-family: courier new,monospace;">at TestNUnit.MyFirstTest.Test1() in C:\Projects\tests\TestNUnit\TestNUnit\Program.cs:line 23</span><br style="font-family: courier new,monospace;"> which is sadly not recognized by MSDev.<br><br>FYI, the post-build event command line that I use is: <br> "C:\Program Files\NUnit 2.4.7\bin\nunit-console.exe" $(ProjectPath) /nologo <br><br></font></font><font face="courier new,monospace"><font face="arial,helvetica,sans-serif">Is there some switch I should use to format the output? I've looked at the options and I haven't seen anything that seems to do that.<br></font></font><br><font face="courier new,monospace"><font face="arial,helvetica,sans-serif">Thanks,<br><br>joce.<br></font></font></div></div> </blockquote></div><br></div> ------=_Part_67033_18541789.1221010182828-- --===============0506677383== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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=/ --===============0506677383== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users --===============0506677383==--