Re: 2.5 console runner documenation
"Charlie Poole" <[email protected]> Sun, 7 Sep 2008 14:50:56 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <002501c91133$d075b8b0$6401a8c0@ferrari> |
This is a multi-part message in MIME format. --===============0865830146== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0026_01C910F9.2416E0B0" This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C910F9.2416E0B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The output is created in code. You could certainly do that yourself if you like. Essentially, you have two choices: to look at the final tree of results, as NUnit does, or to handle each test result as it comes along - which is how NUnit creates it's test output. Of course, you can also continue to use xslt as you now do - you just can't have NUnit apply the xslt for you. That's trivial to do at the end of the test run by taking the xml output adn transforming it. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jay Lemmon Sent: Sunday, September 07, 2008 2:17 PM To: [email protected] Subject: Re: [Nunit-users] 2.5 console runner documenation Well I can't speak for anyone else, but customizing the (console) output of the console runner is important to me. If it's impossible in 2.5, it'll mean I can't upgrade :( It doesn't have to be xslt. And it doesn't have to be a command line switch. Right now I'm actually linking against the console runner assemblies (DLLs) to build my own custom EXE for every test project I build, so it could be something done purely in code. How is the format for the console runner decided right now if it's not xslt? -Jay Lemmon --- On Sun, 9/7/08, Charlie Poole <[email protected]> wrote: From: Charlie Poole <[email protected]> Subject: Re: [Nunit-users] 2.5 console runner documenation To: [email protected] Date: Sunday, September 7, 2008, 1:10 PM Hi Jay, There doesn't seem to be a real need to customize console output, except possibly to have NUnit show more detailed info - an option I'm working on. Most people using the old feature seemed to be producing html with it. That's still possible, but the xml would need to be formatted after the NUnit run. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jay Lemmon Sent: Sunday, September 07, 2008 12:54 PM To: [email protected] Subject: Re: [Nunit-users] 2.5 console runner documenation I just copied the 2.5 binaries over my old binaries, so it wasn't a fool proof test, no :) So how do I, the end user, customize console output now? The release notes don't mention anything in this regard. -Jay Lemmon --- On Sun, 9/7/08, Charlie Poole <[email protected]> wrote: From: Charlie Poole <[email protected]> Subject: Re: [Nunit-users] 2.5 console runner documenation To: [email protected] Date: Sunday, September 7, 2008, 6:39 AM Hi Jay, There's mention in the release notes, under 2.5 alpha 1, about the removal of the transform option. The console output is now indepedent of the xml, so it no longer has any purpose. Since the option is no longer there, I'm pretty sure it can't be working. :-) Are you sure you were using 2.5 for your test? Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Jay Lemmon Sent: Saturday, September 06, 2008 9:42 PM To: [email protected] Subject: [Nunit-users] 2.5 console runner documenation When comparing the 2.4.8 docs and the 2.5 docs, I noticed that this section in console runner: command-line was mostly deleted and partly merged with the one before it: "Specifying the Transform file The console interface uses XSLT to transform the test results from the XML file to what is printed to the screen when the program executes. The console interface has a default transformation that is part of the executable. To specify your own transformation named "myTransform.xslt" use the following command line option: nunit-console /transform:myTransform.xslt nunit.tests.dll Note: For additional information see the XML schema for the test results. This file is in the same directory as the executable and is called Results.xsd. The default transform Summary.xslt is located in the core source directory." In the 2.5 docs, there's no such section, and the mention of the Results.xsd is merged in to the section before it on specifying an output xml file. Is this an error in the docs, or is this feature (specifying a transform) going to be removed in 2.5? A quick test shows that it still works. -Jay Lemmon ------------------------------------------------------------------------- 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=/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users ------=_NextPart_000_0026_01C910F9.2416E0B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>The=20 output is created in code. You could certainly do that yourself if you = like.=20 Essentially,</FONT></SPAN></DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>you=20 have two choices: to look at the final tree of results, as NUnit does, = or to=20 handle each</FONT></SPAN></DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>test=20 result as it comes along - which is how NUnit creates it's test=20 output.</FONT></SPAN></DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>Of=20 course, you can also continue to use xslt as you now do - you just can't = have=20 </FONT></SPAN></DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>NUnit=20 apply the xslt for you. That's trivial to do at the end of the test run = by=20 taking</FONT></SPAN></DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>the=20 xml output adn transforming it.</FONT></SPAN></DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D718164621-07092008><FONT face=3DArial color=3D#0000ff = size=3D2>Charlie</FONT></SPAN></DIV><BR> <BLOCKQUOTE=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B>=20 [email protected]=20 [mailto:[email protected]] <B>On Behalf Of = </B>Jay=20 Lemmon<BR><B>Sent:</B> Sunday, September 07, 2008 2:17 = PM<BR><B>To:</B>=20 [email protected]<BR><B>Subject:</B> Re: [Nunit-users] = 2.5=20 console runner documenation<BR></FONT><BR></DIV> <DIV></DIV> <TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0> <TBODY> <TR> <TD vAlign=3Dtop>Well I can't speak for anyone else, but = customizing the=20 (console) output of the console runner is important to me. = If it's=20 impossible in 2.5, it'll mean I can't upgrade :(<BR><BR>It = doesn't have=20 to be xslt. And it doesn't have to be a command line = switch. =20 Right now I'm actually linking against the console runner = assemblies=20 (DLLs) to build my own custom EXE for every test project I = build, so it=20 could be something done purely in code. How is the format = for the=20 console runner decided right now if it's not xslt?<BR><BR>-Jay=20 Lemmon<BR><BR>--- On <B>Sun, 9/7/08, Charlie Poole=20 <I><[email protected]></I></B> wrote:<BR> <BLOCKQUOTE=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: = rgb(16,16,255) 2px solid">From:=20 Charlie Poole <[email protected]><BR>Subject: = Re:=20 [Nunit-users] 2.5 console runner documenation<BR>To:=20 [email protected]<BR>Date: Sunday, September = 7, 2008,=20 1:10 PM<BR><BR> <DIV id=3Dyiv1697249361> <DIV><SPAN class=3D093490620-07092008></SPAN><FONT = face=3DArial><FONT=20 color=3D#0000ff><FONT = size=3D2>Hi Jay,</FONT></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT=20 size=3D2></FONT></FONT></FONT> </DIV> <DIV><FONT size=3D+0><FONT size=3D+0><FONT face=3DArial><FONT=20 color=3D#0000ff><FONT size=3D2>T<SPAN = class=3D093490620-07092008>here=20 doesn't seem to be a real need to customize console output, = except=20 possibly to = have</SPAN></FONT></FONT></FONT></FONT></FONT></DIV> <DIV><FONT size=3D+0><FONT size=3D+0><FONT face=3DArial><FONT=20 color=3D#0000ff><FONT size=3D2><SPAN = class=3D093490620-07092008>NUnit show=20 more detailed info - an option I'm working on. Most people=20 using the old=20 feature</SPAN></FONT></FONT></FONT></FONT></FONT></DIV> <DIV><SPAN class=3D093490620-07092008></SPAN><FONT = face=3DArial><FONT=20 color=3D#0000ff><FONT size=3D2>s<SPAN = class=3D093490620-07092008>eemed to be=20 producing html with it. That's still possible, but the xml = would need=20 to be </SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT = size=3D2><SPAN=20 class=3D093490620-07092008>formatted after=20 the</SPAN></FONT></FONT></FONT><FONT face=3DArial><FONT=20 color=3D#0000ff><FONT size=3D2><SPAN = class=3D093490620-07092008> NUnit=20 run.</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT = size=3D2><SPAN=20 = class=3D093490620-07092008></SPAN></FONT></FONT></FONT> </DIV> <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT = size=3D2><SPAN=20 = class=3D093490620-07092008>Charlie</SPAN></FONT></FONT></FONT></DIV> <DIV><BR></DIV> <BLOCKQUOTE=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: = rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B>=20 [email protected]=20 [mailto:[email protected]] <B>On = Behalf Of=20 </B>Jay Lemmon<BR><B>Sent:</B> Sunday, September 07, 2008 = 12:54=20 PM<BR><B>To:</B>=20 [email protected]<BR><B>Subject:</B> Re:=20 [Nunit-users] 2.5 console runner = documenation<BR></FONT><BR></DIV> <DIV></DIV> <TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0> <TBODY> <TR> <TD vAlign=3Dtop>I just copied the 2.5 binaries over my = old=20 binaries, so it wasn't a fool proof test, no = :)<BR><BR>So how=20 do I, the end user, customize console output = now? The=20 release notes don't mention anything in this=20 regard.<BR><BR>-Jay Lemmon<BR><BR>--- On <B>Sun, = 9/7/08,=20 Charlie Poole = <I><[email protected]></I></B>=20 wrote:<BR> <BLOCKQUOTE=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: rgb(16,16,255) 2px solid">From:=20 Charlie Poole=20 <[email protected]><BR>Subject: Re:=20 [Nunit-users] 2.5 console runner documenation<BR>To: = [email protected]<BR>Date: Sunday, = September=20 7, 2008, 6:39 AM<BR><BR> <DIV id=3Dyiv257795230> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 class=3D796543513-07092008>Hi = Jay,</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 = class=3D796543513-07092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 class=3D796543513-07092008>There's mention in the = release=20 notes, under 2.5 alpha 1, about the removal of the=20 transform</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 class=3D796543513-07092008>option. The console = output is now=20 indepedent of the xml, so it no longer has any=20 purpose.</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 = class=3D796543513-07092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 class=3D796543513-07092008>Since the option is no = longer=20 there, I'm pretty sure it can't be working. :-) Are = you=20 sure</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 class=3D796543513-07092008>you were using 2.5 for = your=20 test?</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 = class=3D796543513-07092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff = size=3D2><SPAN=20 = class=3D796543513-07092008>Charlie</SPAN></FONT></DIV><BR> <BLOCKQUOTE=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader lang=3Den-us = dir=3Dltr=20 align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B>=20 [email protected]=20 [mailto:[email protected]] = <B>On=20 Behalf Of </B>Jay Lemmon<BR><B>Sent:</B> Saturday, = September 06, 2008 9:42 PM<BR><B>To:</B>=20 = [email protected]<BR><B>Subject:</B>=20 [Nunit-users] 2.5 console runner=20 documenation<BR></FONT><BR></DIV> <DIV></DIV> <TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0> <TBODY> <TR> <TD vAlign=3Dtop>When comparing the 2.4.8 docs = and the=20 2.5 docs, I noticed that this section in = console=20 runner: command-line was mostly deleted and = partly=20 merged with the one before it:<BR><BR><SPAN=20 style=3D"FONT-WEIGHT: bold">"Specifying the = Transform=20 file</SPAN><BR style=3D"FONT-WEIGHT: = bold"><BR=20 style=3D"FONT-WEIGHT: bold"><SPAN=20 style=3D"FONT-WEIGHT: bold">The console = interface uses=20 XSLT to transform the test results from the = XML file=20 to what is printed to the screen when the = program=20 executes. The console interface has a = default=20 transformation that is part of the = executable. To=20 specify your own transformation named=20 "myTransform.xslt" use the following command = line=20 option:</SPAN><BR style=3D"FONT-WEIGHT: = bold"><BR=20 style=3D"FONT-WEIGHT: bold"><SPAN=20 style=3D"FONT-WEIGHT: bold">nunit-console=20 /transform:myTransform.xslt=20 nunit.tests.dll</SPAN><BR=20 style=3D"FONT-WEIGHT: bold"><BR=20 style=3D"FONT-WEIGHT: bold"><SPAN=20 style=3D"FONT-WEIGHT: bold">Note: For = additional=20 information see the XML schema for the test = results.=20 This file is in the same directory as the = executable=20 and is called Results.xsd. The default = transform=20 Summary.xslt is located in the core source=20 directory."</SPAN><BR=20 style=3D"FONT-WEIGHT: bold"><BR>In the 2.5 = docs,=20 there's no such section, and the mention of = the=20 Results.xsd is merged in to the section = before it on=20 specifying an output xml file.<BR><BR>Is = this an=20 error in the docs, or is this feature = (specifying a=20 transform) going to be removed in 2.5? A = quick test=20 shows that it still works.<BR><BR>-Jay=20 = Lemmon<BR></TD></TR></TBODY></TABLE><BR></BLOCKQUOTE></DIV><PRE>---------= ----------------------------------------------------------------<BR>This = SF.Net email is sponsored by the Moblin Your Move = Developer's<BR>challenge<BR>Build the coolest Linux based applications = with Moblin SDK & win great<BR>prizes<BR>Grand prize is a trip for = two to an Open Source event anywhere in the = world<BR>http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D= /</PRE><PRE>_______________________________________________<BR>Nunit-user= s mailing = list<BR>[email protected]<BR>https://lists.sourceforge.ne= t/lists/listinfo/nunit-users<BR></PRE></BLOCKQUOTE></TD></TR></TBODY></TA= BLE><BR></BLOCKQUOTE></DIV><PRE>-----------------------------------------= --------------------------------<BR>This SF.Net email is sponsored by = the Moblin Your Move Developer's<BR>challenge<BR>Build the coolest Linux = based applications with Moblin SDK & win great<BR>prizes<BR>Grand prize is a trip for two to an Open Source = event anywhere in the = world<BR>http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D= /</PRE><PRE>_______________________________________________<BR>Nunit-user= s mailing = list<BR>[email protected]<BR>https://lists.sourceforge.ne= t/lists/listinfo/nunit-users<BR></PRE></BLOCKQUOTE></TD></TR></TBODY></TA= BLE><BR></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0026_01C910F9.2416E0B0-- --===============0865830146== 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=/ --===============0865830146== 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 --===============0865830146==--