XML reports (for Hudson)

Visto 302 veces
Saltar al primer mensaje no leído

Alexandre Bertails

no leída,
18 sept 2009, 18:42:4618/9/09
a simple-build-tool
Hi all,

does anybody know if it's possible to generate test report XMLs, like
maven:surefire does?

Having that is especially interesting for Hudson.

Best regards,

Alexandre.

Mark Harrah

no leída,
18 sept 2009, 19:20:2618/9/09
a simple-b...@googlegroups.com
Hi Alexandre,

I don't know if anyone else has done this already, but you can
implement your own TestsListener. There is some information on the
wiki[1] and you can see TestReportListener.scala[2] for the source.
There is a FileReportListener there that writes plain text that you
can use as an example.

Thanks,
Mark

[1] http://code.google.com/p/simple-build-tool/wiki/TestFrameworkExtensions
[2] http://code.google.com/p/simple-build-tool/source/browse/trunk/src/main/scala/sbt/TestReportListener.scala

Jonathan Hoffman

no leída,
7 ene 2010, 12:53:167/1/10
a Mark Harrah,simple-b...@googlegroups.com
Thanks Mark,

I actually meant to message the list. Is that feature currently in 0.6.9?

- Jon

On Jan 7, 2010, at 12:31 PM, Mark Harrah wrote:

> Hey Jon,
>
> I don't know, you can ask on the list. In sbt 0.6.x though, reporting will be
> left up to the individual test frameworks. If the test framework you are
> using supports hudson output, you can tell it to do so.
>
> -Mark
>
> On Thursday 07 January 2010, jon wrote:
>> Has anyone created a reporter that creates hudson compatible output?


>>
>> On Sep 18 2009, 6:20 pm, Mark Harrah <dmhar...@gmail.com> wrote:
>>> Hi Alexandre,
>>>
>>> I don't know if anyone else has done this already, but you can
>>> implement your own TestsListener. There is some information on the
>>> wiki[1] and you can see TestReportListener.scala[2] for the source.
>>> There is a FileReportListener there that writes plain text that you
>>> can use as an example.
>>>
>>> Thanks,
>>> Mark
>>>
>>> [1]http://code.google.com/p/simple-build-tool/wiki/TestFrameworkExtension
>>> s

>>> [2]http://code.google.com/p/simple-build-tool/source/browse/trunk/src/ma.
>>> ..

Mark Harrah

no leída,
7 ene 2010, 15:46:007/1/10
a simple-b...@googlegroups.com
Jon,

No it isn't in 0.6.9. What I was saying is that in 0.6.x, sbt defers to the testing frameworks for how to log. So, if ScalaTest provides an option like -reporter=hudson, you'd pass
that option along to ScalaTest.

Trying to provide a common reporter interface was a bad idea since each framework has its own idea of how tests are structured.

-Mark

On Thursday 07 January 2010, Jonathan Hoffman wrote:
> Thanks Mark,
>
> I actually meant to message the list. Is that feature currently in 0.6.9?
>
> - Jon
>
> On Jan 7, 2010, at 12:31 PM, Mark Harrah wrote:
> > Hey Jon,
> >
> > I don't know, you can ask on the list. In sbt 0.6.x though, reporting
> > will be left up to the individual test frameworks. If the test framework
> > you are using supports hudson output, you can tell it to do so.
> >
> > -Mark
> >
> > On Thursday 07 January 2010, jon wrote:
> >> Has anyone created a reporter that creates hudson compatible output?
> >>
> >> On Sep 18 2009, 6:20 pm, Mark Harrah <dmhar...@gmail.com> wrote:
> >>> Hi Alexandre,
> >>>
> >>> I don't know if anyone else has done this already, but you can
> >>> implement your own TestsListener. There is some information on the
> >>> wiki[1] and you can see TestReportListener.scala[2] for the source.
> >>> There is a FileReportListener there that writes plain text that you
> >>> can use as an example.
> >>>
> >>> Thanks,
> >>> Mark
> >>>
> >>> [1]http://code.google.com/p/simple-build-tool/wiki/TestFrameworkExtensi
> >>>on s
> >>> [2]http://code.google.com/p/simple-build-tool/source/browse/trunk/src/m

> >>>a. ..


> >>>
> >>> On 9/18/09, Alexandre Bertails <berta...@gmail.com> wrote:
> >>>> Hi all,
> >>>>
> >>>> does anybody know if it's possible to generate test report XMLs, like
> >>>> maven:surefire does?
> >>>>
> >>>> Having that is especially interesting forHudson.
> >>>>
> >>>> Best regards,
> >>>>
> >>>> Alexandre.
>


-------------------------------------------------------

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos