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&#39;s not a &quot;simple&quot; mod. If I remember correctly, I had to modify 4 or 5 files.<br>I don&#39;t have the code with me atm, but if you&#39;re interested, I could post the modifications I&#39;ve made later.<br><br>
<div class="gmail_quote">On Thu, Nov 27, 2008 at 12:36 PM, riemann tolow <span dir="ltr">&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</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&#39;t find where is formats the exception stack trace for the console ouput.<br>
<br>thanks<br>rmn<br><br><br>&gt;I&#39;ll modify my version, and keep an eye out for this feature in an ulterior<br>&gt;version then!<br>&gt;Thank you very much for the info.<br>&gt;<br>&gt;joce.<br>&gt;<br>&gt;On Tue, Sep 9, 2008 at 7:47 PM, Charlie Poole<br>
&gt;&lt;charlie@po...&gt;wrote:<br>&gt;<br>&gt;&gt; Hi,<br>&gt;&gt;<br>&gt;&gt; When you run as a post-build step, you are not running &quot;in debug mode under<br>&gt;&gt; Visual Studio&quot;<br>&gt;&gt;<br>&gt;&gt; Many folks have independently come up with this way to integrate NUnit into<br>
&gt;&gt; VS, but it&#39;s<br>&gt;&gt; not how the NUnit developers pictured running NUnit under VS, so it<br>&gt;&gt; doesn&#39;t work as<br>&gt;&gt; smoothly as it could.<br>&gt;&gt;<br>&gt;&gt; You can of course continue to run that way, but without the line formatting<br>
&gt;&gt; you would<br>&gt;&gt; like to see, or you can set up nunit-console as the debug application and<br>&gt;&gt; use the<br>&gt;&gt; trace output, which is formatted as you want.<br>&gt;&gt;<br>&gt;&gt; Modifying the normal console output so that it can be used effectively in<br>
&gt;&gt; the way you<br>&gt;&gt; describe has been requested as a feature and will be included in a future<br>&gt;&gt; release.<br>&gt;&gt;<br>&gt;&gt; Charlie<br>&gt;&gt;<br>&gt;&gt; ------------------------------<br>&gt;&gt; *From:* nunit-users-bounces@li... [mailto:<br>
&gt;&gt; nunit-users-bounces@li...] *On Behalf Of *Jocelyn Legault<br>&gt;&gt; *Sent:* Tuesday, September 09, 2008 6:30 PM<br>&gt;&gt; *To:* nunit-users@li...<br>&gt;&gt; *Subject:* Re: [Nunit-users] Console output format and Visual Studio<br>
&gt;&gt; (2005)<br>&gt;&gt;<br>&gt;&gt; Anyone?<br>&gt;&gt;<br>&gt;&gt; On Mon, Sep 8, 2008 at 10:01 PM, Jocelyn Legault &lt;jocelynlegault@gm...<br>&gt;&gt; &gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hello.<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m new to NUnit (and to C# in general). I&#39;m currently trying to<br>&gt;&gt;&gt; integrate NUnit with my project, using it as a post-build step to run the<br>&gt;&gt;&gt; tests.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; From the local documentation file<br>
&gt;&gt;&gt; file:///C:/Program%20Files/NUnit%202.4.7/doc/vsSupport.html (also on the web<br>&gt;&gt;&gt; at <a href="http://www.nunit.org/index.php?p=vsSupport&amp;r=2.2" target="_blank">http://www.nunit.org/index.php?p=vsSupport&amp;r=2.2</a>), it is stated that:<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; *When the nunit-console program is run in debug mode under Visual Studio,<br>&gt;&gt;&gt;&gt; it detects that it is running in this mode and sends output to the Visual<br>&gt;&gt;&gt;&gt; Studio output window. Output is formatted so that double clicking any error<br>
&gt;&gt;&gt;&gt; or failure entries opens the appropriate test file at the location where the<br>&gt;&gt;&gt;&gt; failure was detected.*<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; To me, that means that the output should be such as:<br>
&gt;&gt;&gt; C:\Projects\tests\TestNUnit\TestNUnit\Program.cs(24,10): error CS1002: ;<br>&gt;&gt;&gt; expected<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; But instead, what I get is:<br>&gt;&gt;&gt; at TestNUnit.MyFirstTest.Test1() in<br>
&gt;&gt;&gt; C:\Projects\tests\TestNUnit\TestNUnit\Program.cs:line 23<br>&gt;&gt;&gt; which is sadly not recognized by MSDev.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; FYI, the post-build event command line that I use is:<br>&gt;&gt;&gt; &quot;C:\Program Files\NUnit 2.4.7\bin\nunit-console.exe&quot; $(ProjectPath)<br>
&gt;&gt;&gt; /nologo<br>&gt;&gt;&gt;<br>&gt;&gt; Is there some switch I should use to format the output? I&#39;ve looked at the<br>&gt;&gt; options and I haven&#39;t seen anything that seems to do that.<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>
&gt;&gt;<br>&gt;&gt; joce.<br><div class="WgoR0d"><br><hr>Connect to the next generation of MSN Messenger&nbsp;  <a href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&amp;source=wlmailtagline" target="_blank">Get it now! </a></div>
</div>
<br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;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==--