Re: Console output format and Visual Studio (2005)
"Jocelyn Legault" <[email protected]> Thu, 27 Nov 2008 16:44:12 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
--===============3456905645738433166== Content-Type: multipart/alternative; boundary="----=_Part_43671_21442969.1227829452251" ------=_Part_43671_21442969.1227829452251 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It's not a "simple" mod. If I remember correctly, I had to modify 4 or 5 files. I don't have the code with me atm, but if you're interested, I could post the modifications I've made later. On Thu, Nov 27, 2008 at 12:36 PM, riemann tolow <[email protected]> wrote: > Hi, > > I am interested to now where and what modification must be made to get this > feature working. > > I found the place where NUnit format the exception stack under debug mode > (EvenCollector) But couldn't find where is formats the exception stack trace > for the console ouput. > > thanks > rmn > > > >I'll modify my version, and keep an eye out for this feature in an > ulterior > >version then! > >Thank you very much for the info. > > > >joce. > > > >On Tue, Sep 9, 2008 at 7:47 PM, Charlie Poole > ><charlie@po...>wrote: > > > >> Hi, > >> > >> When you run as a post-build step, you are not running "in debug mode > under > >> Visual Studio" > >> > >> Many folks have independently come up with this way to integrate NUnit > into > >> VS, but it's > >> not how the NUnit developers pictured running NUnit under VS, so it > >> doesn't work as > >> smoothly as it could. > >> > >> You can of course continue to run that way, but without the line > formatting > >> you would > >> like to see, or you can set up nunit-console as the debug application > and > >> use the > >> trace output, which is formatted as you want. > >> > >> Modifying the normal console output so that it can be used effectively > in > >> the way you > >> describe has been requested as a feature and will be included in a > future > >> release. > >> > >> Charlie > >> > >> ------------------------------ > >> *From:* nunit-users-bounces@li... [mailto: > >> nunit-users-bounces@li...] *On Behalf Of *Jocelyn Legault > >> *Sent:* Tuesday, September 09, 2008 6:30 PM > >> *To:* nunit-users@li... > >> *Subject:* Re: [Nunit-users] Console output format and Visual Studio > >> (2005) > >> > >> Anyone? > >> > >> On Mon, Sep 8, 2008 at 10:01 PM, Jocelyn Legault <jocelynlegault@gm... > >> > 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. > > ------------------------------ > Connect to the next generation of MSN Messenger Get it now! > <http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline> > > ------------------------------------------------------------------------- > 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 > > ------=_Part_43671_21442969.1227829452251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It's not a "simple" mod. If I remember correctly, I had to modify 4 or 5 files.<br>I don't have the code with me atm, but if you're interested, I could post the modifications I've made later.<br><br> <div class="gmail_quote">On Thu, Nov 27, 2008 at 12:36 PM, riemann tolow <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> Hi,<br><br>I am interested to now where and what modification must be made to get this feature working.<br><br>I found the place where NUnit format the exception stack under debug mode (EvenCollector) But couldn't find where is formats the exception stack trace for the console ouput.<br> <br>thanks<br>rmn<br><br><br>>I'll modify my version, and keep an eye out for this feature in an ulterior<br>>version then!<br>>Thank you very much for the info.<br>><br>>joce.<br>><br>>On Tue, Sep 9, 2008 at 7:47 PM, Charlie Poole<br> ><charlie@po...>wrote:<br>><br>>> Hi,<br>>><br>>> When you run as a post-build step, you are not running "in debug mode under<br>>> Visual Studio"<br>>><br>>> Many folks have independently come up with this way to integrate NUnit into<br> >> VS, but it's<br>>> not how the NUnit developers pictured running NUnit under VS, so it<br>>> doesn't work as<br>>> smoothly as it could.<br>>><br>>> You can of course continue to run that way, but without the line formatting<br> >> you would<br>>> like to see, or you can set up nunit-console as the debug application and<br>>> use the<br>>> trace output, which is formatted as you want.<br>>><br>>> Modifying the normal console output so that it can be used effectively in<br> >> the way you<br>>> describe has been requested as a feature and will be included in a future<br>>> release.<br>>><br>>> Charlie<br>>><br>>> ------------------------------<br>>> *From:* nunit-users-bounces@li... [mailto:<br> >> nunit-users-bounces@li...] *On Behalf Of *Jocelyn Legault<br>>> *Sent:* Tuesday, September 09, 2008 6:30 PM<br>>> *To:* nunit-users@li...<br>>> *Subject:* Re: [Nunit-users] Console output format and Visual Studio<br> >> (2005)<br>>><br>>> Anyone?<br>>><br>>> On Mon, Sep 8, 2008 at 10:01 PM, Jocelyn Legault <jocelynlegault@gm...<br>>> > wrote:<br>>><br>>>> Hello.<br>>>><br> >>> I'm new to NUnit (and to C# in general). I'm currently trying to<br>>>> integrate NUnit with my project, using it as a post-build step to run the<br>>>> tests.<br>>>><br>>>> From the local documentation file<br> >>> file:///C:/Program%20Files/NUnit%202.4.7/doc/vsSupport.html (also on the web<br>>>> 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>>>> *When the nunit-console program is run in debug mode under Visual Studio,<br>>>>> it detects that it is running in this mode and sends output to the Visual<br>>>>> Studio output window. Output is formatted so that double clicking any error<br> >>>> or failure entries opens the appropriate test file at the location where the<br>>>>> failure was detected.*<br>>>><br>>>><br>>>> To me, that means that the output should be such as:<br> >>> C:\Projects\tests\TestNUnit\TestNUnit\Program.cs(24,10): error CS1002: ;<br>>>> expected<br>>>><br>>>> But instead, what I get is:<br>>>> at TestNUnit.MyFirstTest.Test1() in<br> >>> C:\Projects\tests\TestNUnit\TestNUnit\Program.cs:line 23<br>>>> 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)<br> >>> /nologo<br>>>><br>>> Is there some switch I should use to format the output? I've looked at the<br>>> options and I haven't seen anything that seems to do that.<br>>><br>>> Thanks,<br> >><br>>> joce.<br><div class="WgoR0d"><br><hr>Connect to the next generation of MSN Messenger <a href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline" target="_blank">Get it now! </a></div> </div> <br>-------------------------------------------------------------------------<br> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br> Build the coolest Linux based applications with Moblin SDK & win great prizes<br> Grand prize is a trip for two to an Open Source event anywhere in the world<br> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br> Nunit-users mailing list<br> <a href="mailto:[email protected]">[email protected]</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/nunit-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nunit-users</a><br> <br></blockquote></div><br> ------=_Part_43671_21442969.1227829452251-- --===============3456905645738433166== 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=/ --===============3456905645738433166== 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 --===============3456905645738433166==--