ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: log4j + JUnit + Ant 1.4
Date Fri, 16 Nov 2001 16:26:50 GMT
Of course!

I just forgot about those elements being there (d'oh!) - but everything in
the XML data files is fair game for HTML reporting.  I could see it being
handy to actually hyperlink right to the XML data files as well if they are
kept together as a unit.

    Erik


----- Original Message -----
From: "Christopher Berry" <christopher.berry@etrade.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Friday, November 16, 2001 7:56 AM
Subject: RE: log4j + JUnit + Ant 1.4


> Good advise. Thanks.
> Couldn't the included output -- the stuff (if it is present) in between
the
> <system-out> and <system-err> tags, be dropped into separate HTML files in
> the same dirs by junitreport itself. As, say, TestMyTest-stdout.html, and
> then linked on the suite summary pages.
> Cheers,
> -- Chris
>
>  -----Original Message-----
>  From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
>  Sent: Friday, November 16, 2001 9:40 AM
>  To: Ant Users List
>  Subject: Re: log4j + JUnit + Ant 1.4
>
>
>  Chris,
>
>  There is no need to post-process the generated HTML.... I'd
>  recommend simply
>  tweaking the XSLT sheets that are used to generate the HTML.
>
>  Its not really feasible currently to provide a link from the
>  HTML to the XML
>  data files because the HTML could be generated in a different
>  directory than
>  the data (so generating valid hyperlinks would be a problem if
>  the HTML were
>  posted to a web server without the data tagging along in a relative
>  directory way).
>
>      Erik
>
>  ----- Original Message -----
>  From: "Christopher Berry" <christopher.berry@etrade.com>
>  To: "'Ant Users List'" <ant-user@jakarta.apache.org>
>  Sent: Friday, November 16, 2001 7:21 AM
>  Subject: RE: log4j + JUnit + Ant 1.4
>
>
>  > Yeah. It all works fine with a FileAppender. Only this is
>  not rolled in
>  > nicely with the JUnit Formatter's output, and adds another
>  artifact to the
>  > mix.
>  >
>  > I am thinking of using Ant to post process the generated
>  HTML files to
>  > include a link, if any, to the log4j file. Currently, AFAIK, the
>  junitreport
>  > generated HTML doesn't refer to it's included output right anyway.
>  >
>  > Cheers,
>  > -- Chris
>  >
>  >  -----Original Message-----
>  >  From: Alan Pearlman Spencer
>  >  [mailto:Alan.PearlmanSpencer@Mobileaware.com]
>  >  Sent: Friday, November 16, 2001 3:07 AM
>  >  To: Ant Users List
>  >  Subject: RE: log4j + JUnit + Ant 1.4
>  >
>  >
>  >  I have used these together...
>  >  I think is is because ANT tried to catch output (System.out)
>  >  from tasks.
>  >  I would use a file appender if I were you...
>  >  Alan.
>  >
>  >  -----Original Message-----
>  >  From: Christopher Berry [mailto:christopher.berry@etrade.com]
>  >  Sent: 15 November 2001 21:59
>  >  To: Ant-User (E-mail)
>  >  Subject: log4j + JUnit + Ant 1.4
>  >
>  >
>  >  Greetings,
>  >  I am trying to get the junit task to run properly with log4j.
>  >  Has anyone
>  >  else been successful with this??
>  >  If I print to System.out in my JUnit Tests, the output is properly
>  >  created. But when I use log4j to a ConsoleAppender, it is not.
>  >  I am using the following Target definition::
>  >
>  >    <target name="run_junit" description="Run Single JUnit test"
>  >  if="testcase" depends="quick" >
>  >      <junit printsummary="withOutAndErr" haltonfailure="yes"
>  fork="true"
>  >  >
>  >        <classpath>
>  >          <pathelement location="${efc.pkgs.unpacked}" />
>  >          <fileset dir="${efc.pkgs.lib}">
>  >            <include name="**/*.jar" />
>  >          </fileset>
>  >          <pathelement location="${efc.pkgs.unpacked.classes}" />
>  >        </classpath>
>  >        <formatter type="plain" usefile="true" />
>  >        <test name="${testcase}" />
>  >      </junit>
>  >    </target>
>  >
>  >  NOTE: In order to see my output in the JUnit Formatters, I ended up
>  >  having to add the following lines to  JUnitTestRunner::run().
>  >              System.setOut( systemOut );
>  >              System.setErr( systemError );
>  >  Without these lines I never saw *any* output at all????
>  >
>  >  Thanks,
>  >  -- Chris
>  >
>  >  Chris Berry  --- christopher.berry@etrade.com  -- 512-323-9479
>  >
>  >
>  >
>  >
>  > --
>  > To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message