buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Maas <pfmm...@gmail.com>
Subject Re: test reports for scala / scalatest
Date Mon, 15 Feb 2010 15:12:20 GMT
Those reports are great, but it would be even better to have XML report
which are compatible to the junit XML report format; from that it would be
fairly easy to have the test reports pop-up in CI systems like hudson! The
XMLs for this look something like this; not sure we need all the properties
though ;)

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="0" hostname="peter-laptop"
name="mypackage.MyTest" tests="1" time="0.021"
timestamp="2010-02-15T14:32:16">
  <properties>
    <property name="java.runtime.name" value="Java(TM) SE Runtime
Environment" />
    <property name="sun.boot.library.path"
value="/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64" />
    <property name="java.vm.version" value="14.1-b02" />
    <property name="ant.version" value="Apache Ant version 1.7.1 compiled on
June 27 2008" />
    <property name="ant.java.version" value="1.6" />
    <property name="java.vm.vendor" value="Sun Microsystems Inc." />
    <property name="java.vendor.url" value="http://java.sun.com/" />
    <property name="path.separator" value=":" />
    <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"
/>
    <property name="file.encoding.pkg" value="sun.io" />
    <property name="user.country" value="US" />
    <property name="sun.java.launcher" value="SUN_STANDARD" />
    <property name="sun.os.patch.level" value="unknown" />
    <property name="java.vm.specification.name" value="Java Virtual Machine
Specification" />
    <property name="user.dir"
value="/home/peter/dev/projects/migration/mini-marktplaats/frontend" />
    <property name="java.runtime.version" value="1.6.0_15-b03" />
    <property name="java.awt.graphicsenv"
value="sun.awt.X11GraphicsEnvironment" />
    <property name="basedir"
value="/home/peter/dev/projects/migration/mini-marktplaats" />
    <property name="java.endorsed.dirs"
value="/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/endorsed" />
    <property name="os.arch" value="amd64" />
    <property name="java.io.tmpdir" value="/tmp" />
    <property name="ant.core.lib"
value="/home/peter/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar" />
    <property name="line.separator" value="
" />
    <property name="java.vm.specification.vendor" value="Sun Microsystems
Inc." />
    <property name="os.name" value="Linux" />
    <property name="ant.project.name" value="junit" />
    <property name="sun.jnu.encoding" value="UTF-8" />
    <property name="java.library.path"
value="/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib"
/>
    <property name="java.specification.name" value="Java Platform API
Specification" />
    <property name="java.class.version" value="50.0" />
    <property name="sun.management.compiler" value="HotSpot 64-Bit Server
Compiler" />
    <property name="os.version" value="2.6.31-19-generic" />
    <property name="user.home" value="/home/peter" />
    <property name="user.timezone" value="" />
    <property name="java.awt.printerjob" value="sun.print.PSPrinterJob" />
    <property name="java.specification.version" value="1.6" />
    <property name="file.encoding" value="UTF-8" />
    <property name="java.class.path" value="... the classpath ..." />
    <property name="user.name" value="peter" />
    <property name="java.vm.specification.version" value="1.0" />
    <property name="java.home" value="/usr/lib/jvm/java-6-sun-1.6.0.15/jre"
/>
    <property name="sun.arch.data.model" value="64" />
    <property name="java.specification.vendor" value="Sun Microsystems Inc."
/>
    <property name="user.language" value="en" />
    <property name="java.vm.info" value="mixed mode" />
    <property name="java.version" value="1.6.0_15" />
    <property name="java.ext.dirs"
value="/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/ext:/usr/java/packages/lib/ext"
/>
    <property name="sun.boot.class.path"
value="/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/classes"
/>
    <property name="java.vendor" value="Sun Microsystems Inc." />
    <property name="file.separator" value="/" />
    <property name="java.vendor.url.bug" value="
http://java.sun.com/cgi-bin/bugreport.cgi" />
    <property name="sun.cpu.endian" value="little" />
    <property name="sun.io.unicode.encoding" value="UnicodeLittle" />
    <property name="baseDir"
value="/home/peter/dev/projects/migration/mini-marktplaats/frontend/target/test/classes"
/>
    <property name="sun.desktop" value="gnome" />
    <property name="sun.cpu.isalist" value="" />
  </properties>
  <testcase classname="mypackage.MyTest" name="myTestMethod" time="0.0010"
/>
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>


On Thu, Feb 11, 2010 at 7:33 PM, Alex Boisvert <alex.boisvert@gmail.com>wrote:

> The ScalaTest task currently generates text reports under
> reports/scalatest.
>
>
> What do you need?  I'll code it.
>
> alex
>
>
> On Wed, Feb 10, 2010 at 12:02 AM, Peter Maas <pfmmaas@gmail.com> wrote:
>
> > Hi all,
> >
> > I'm using buildr for a mixed java/scala project and it works great. One
> > thing I wondered about though is whether anything is present to generate
> > reports from scalatest which I could feed to hudson.
> >
> > any help/pointers are appreciated.
> >
> > Kind regards,
> >
> > -Peter
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message