surefire report output using FlatSpec, SBT and Jenkins

279 views
Skip to first unread message

Gregg Carrier

unread,
Jan 27, 2012, 5:00:47 PM1/27/12
to scalate...@googlegroups.com
I'm trying to generate standard report output when running ScalaTest
FlatSpec tests with SBT.

I have searched around for a solution to this, but have only found
sort of hacky solutions and reliance on SBT plugins. Bill mentioned a
while back that he would be adding support for this to ScalaTest. Any
progress on that? I'm hoping there is currently a straightforward way
to generate standard Surefire reports when running ScalaTest FlatSepcs
with SBT.

Is there some documentation or a newer feature that will reliably
accomplish this? Has anyone gotten this working (I'm assuming it's
rather common to use Jenkins and SBT)? Any examples?

Thanks -

Gregg

Bill Venners

unread,
Feb 7, 2012, 6:00:01 AM2/7/12
to scalate...@googlegroups.com
Hi Gregg,

Sorry it took me so long to approve this post. Google Groups for some
reason stopped sending me notices of pending messages for a few weeks.
The way to do it currently is the sbt plugin approach you discovered.
We almost released something in 1.7 to do it more directly, but hit
some issues and I backed it out as being too late in the game to do
something risky. We can try that again in 1.8. The right way to do it
is to enhance sbt's Framework API adding the notion of a run. We've
been working on that as part of the 2.0 release effort. I haven't
heard back from Mark Harrah, the sbt fellow, for a while now, so I'm
not sure what the timing of it will be. I'll also document the sbt
plugin approach on scalatest.org to make it easier for users to figure
out how to do it currently.

Bill

> --
> You received this message because you are subscribed to the Google
> Groups "scalatest-users" group.
> To post to this group, send email to scalate...@googlegroups.com
> To unsubscribe from this group, send email to
> scalatest-use...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/scalatest-users?hl=en
> ScalaTest itself, and documentation, is available here:
> http://www.artima.com/scalatest

--
Bill Venners
Artima, Inc.
http://www.artima.com

Matt Russell

unread,
May 1, 2012, 5:00:27 AM5/1/12
to scalate...@googlegroups.com
Hi Bill,

What is the plug-in approach? (I did have a dig around, but I couldn't see any documentation on the ScalaTest page).

Cheers,

-- Matt Russell


On Tuesday, February 7, 2012 11:00:01 AM UTC, Bill Venners wrote:

Sorry it took me so long to approve this post. Google Groups for some
reason stopped sending me notices of pending messages for a few weeks.
The way to do it currently is the sbt plugin approach you discovered.
We almost released something in 1.7 to do it more directly, but hit
some issues and I backed it out as being too late in the game to do
something risky. We can try that again in 1.8. The right way to do it
is to enhance sbt's Framework API adding the notion of a run. We've
been working on that as part of the 2.0 release effort. I haven't
heard back from Mark Harrah, the sbt fellow, for a while now, so I'm
not sure what the timing of it will be. I'll also document the sbt
plugin approach on scalatest.org to make it easier for users to figure
out how to do it currently.

Bill

On Sat, Jan 28, 2012 at 6:00 AM, Gregg Carrierwrote:


> I'm trying to generate standard report output when running ScalaTest
> FlatSpec tests with SBT.
>
> I have searched around for a solution to this, but have only found
> sort of hacky solutions and reliance on SBT plugins. Bill mentioned a
> while back that he would be adding support for this to ScalaTest. Any
> progress on that? I'm hoping there is currently a straightforward way
> to generate standard Surefire reports when running ScalaTest FlatSepcs
> with SBT.
>
> Is there some documentation or a newer feature that will reliably
> accomplish this? Has anyone gotten this working (I'm assuming it's
> rather common to use Jenkins and SBT)? Any examples?
>
> Thanks -
>
> Gregg
>
> --
> You received this message because you are subscribed to the Google
> Groups "scalatest-users" group.

> To post to this group, send email to scalatest-users@googlegroups.com


> To unsubscribe from this group, send email to


> For more options, visit this group at
> http://groups.google.com/group/scalatest-users?hl=en
> ScalaTest itself, and documentation, is available here:
> http://www.artima.com/scalatest

Bill Venners

unread,
May 1, 2012, 6:39:55 AM5/1/12
to scalate...@googlegroups.com
Hi Matt,

I believe this is the approach people have been using:

http://henkelmann.eu/2010/11/14/sbt_hudson_with_test_integration

Sorry I haven't documented that yet on scalatest.org.

Bill

To post to this group, send email to scalate...@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/scalatest-users?hl=en
ScalaTest itself, and documentation, is available here:
http://www.artima.com/scalatest
Reply all
Reply to author
Forward
0 new messages