Newbie Jenkins+ScalaTest question

23 views
Skip to first unread message

Scott Shipp

unread,
May 6, 2016, 6:58:33 PM5/6/16
to scalatest-users
Hey does anyone have an example or documentation they can point me towards which shows how to have Jenkins email us when any ScalaTests run longer than a given threshold? This seems like it would be not that hard to do since the ScalaTest report (we publish the HTML version at the end of each build) has a column which states the duration in milliseconds. We would just want to run a script that looks at these values and if any of them exceed a certain amount, sends an email with a link to the report.

Scott Shipp

unread,
May 9, 2016, 12:06:21 PM5/9/16
to scalatest-users
Another totally fine option is if we could have ScalaTest write a custom log statement to the log whenever a test runs past a given threshold. We could configure the ext-email plugin to look for these log lines and take the appropriate action of notifying us.

Bill Venners

unread,
May 9, 2016, 12:38:57 PM5/9/16
to scalate...@googlegroups.com
Hi Scott,

ScalaTest has a feature called slowpoke detector that you can configure to report the suite and test names at whatever slowness thresholds you specify. I'm on a phone so can't give you a York. It is described on the org.scalatest.Runner scala doc.

Bill

----
Bill Venners
Artima, Inc.
--
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
---
You received this message because you are subscribed to the Google Groups "scalatest-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalatest-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Shipp

unread,
May 9, 2016, 1:16:29 PM5/9/16
to scalatest-users
No problem I found it! That's beautiful! Thank you! 

Reply all
Reply to author
Forward
0 new messages