Test status notifications

47 views
Skip to first unread message

Antonio Salazar Cardozo

unread,
Feb 2, 2010, 9:08:29 PM2/2/10
to simple-build-tool
sbt's auto-run testing facilities kind of rock the planet, but I was
wondering if there is currently a way to output notifications, for
example via growl on Mac OS X, with the test results. This is
extraordinarily useful for TDD and BDD, since it means that you can
verify simply that tests are failing and passing when they are
supposed to, and only need to switch to the console when a test fails
unexpectedly.

Thanks for all the hard work, this is a kickass bit of software!

Mark Harrah

unread,
Feb 3, 2010, 7:58:52 AM2/3/10
to simple-b...@googlegroups.com
On Tuesday 02 February 2010, Antonio Salazar Cardozo wrote:
> sbt's auto-run testing facilities kind of rock the planet, but I was
> wondering if there is currently a way to output notifications, for
> example via growl on Mac OS X, with the test results. This is
> extraordinarily useful for TDD and BDD, since it means that you can
> verify simply that tests are failing and passing when they are
> supposed to, and only need to switch to the console when a test fails
> unexpectedly.

I don't know growl, but you can write a test listener[1] that does something
when test pass or fail. For example, sbt adds its own test reporter[2] to
record which tests passed/failed in order to implement test-failed/test-quick.
You can add one to implement your notification how you like.

> Thanks for all the hard work, this is a kickass bit of software!

Sure, nice to hear you find it useful!

-Mark

[1] http://code.google.com/p/simple-build-
tool/wiki/TestFrameworkExtensions#Custom_Test_Reporters
[2] http://github.com/harrah/sbt/blob/using-
xsbt/src/main/scala/sbt/impl/TestStatusReporter.scala

Antonio Salazar Cardozo

unread,
Feb 3, 2010, 7:06:34 PM2/3/10
to simple-build-tool
Cool. Is there a current `best practice' for then distributing that
extension publicly?
Antonio

Mark Harrah

unread,
Feb 3, 2010, 8:35:55 PM2/3/10
to simple-b...@googlegroups.com
Antonio,

Plugins are a good way:
http://code.google.com/p/simple-build-tool/wiki/SbtPlugins

-Mark

Doug Tangren

unread,
Feb 4, 2010, 9:09:00 AM2/4/10
to simple-b...@googlegroups.com
Awesome! I just wrote a scala growl client the other day for just this purpose. I wrote up a quick plugin test last night.  I will try to put it up on github and publish it tonight.

-Doug Tangren
http://lessis.me


--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.


Josh Cough

unread,
Feb 4, 2010, 9:20:40 AM2/4/10
to simple-b...@googlegroups.com, simple-b...@googlegroups.com
Please do let us know!

Sent from my iPhone

Doug Tangren

unread,
Feb 4, 2010, 9:27:21 AM2/4/10
to simple-b...@googlegroups.com
will do
-Doug Tangren
http://lessis.me
Sent from New York, NY, United States

James Strachan

unread,
Feb 5, 2010, 10:35:33 AM2/5/10
to simple-build-tool

On Feb 4, 2:27 pm, Doug Tangren <d.tang...@gmail.com> wrote:
> will do

BTW what I'd really like is the Growl message to include a hypertext
link to the HTML report of the failed test cases...

http://groups.google.com/group/simple-build-tool/browse_thread/thread/e99aa38288b5daec#

then I could just spin up sbt in continuous testing mode "~ test-
quick" say - then just use growl notifications to get the big picture
of passed/fail counts & the web browser to see whats going on if I
want to look in more detail

Doug Tangren

unread,
Feb 5, 2010, 11:14:24 AM2/5/10
to simple-b...@googlegroups.com
Awesome, http://github.com/jstrachan/webbytest/ looks neat. I will try to integrate that with what I'm working on this weekend.

-Doug Tangren
http://lessis.me



--

Antonio Salazar Cardozo

unread,
Feb 5, 2010, 5:40:15 PM2/5/10
to simple-build-tool
Bah, this is what I get for holing up in a cave for a couple of days.
I've got a simple plugin at http://github.com/Shadowfiend/sbt-growl-tests
.

It depends on growlnotify and at the moment doesn't have icons, just
text. I probably won't expand it too much beyond this, though, as this
more or less meets my needs.

Looking forward to what you come up with, Doug!
Thanks,
Antonio

On Feb 5, 11:14 am, Doug Tangren <d.tang...@gmail.com> wrote:
> Awesome,http://github.com/jstrachan/webbytest/looks neat. I will try to


> integrate that with what I'm working on this weekend.
>

> -Doug Tangrenhttp://lessis.me


>
> On Fri, Feb 5, 2010 at 10:35 AM, James Strachan <james.strac...@gmail.com>wrote:
>
>
>
>
>
> > On Feb 4, 2:27 pm, Doug Tangren <d.tang...@gmail.com> wrote:
> > > will do
>
> > BTW what I'd really like is the Growl message to include a hypertext
> > link to the HTML report of the failed test cases...
>

> >http://groups.google.com/group/simple-build-tool/browse_thread/thread...


>
> > then I could just spin up sbt in continuous testing mode "~ test-
> > quick" say - then just use growl notifications to get the big picture
> > of passed/fail counts & the web browser to see whats going on if I
> > want to look in more detail
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "simple-build-tool" group.
> > To post to this group, send email to simple-b...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > simple-build-t...@googlegroups.com<simple-build-tool%2Bunsubscr i...@googlegroups.com>

Doug Tangren

unread,
Feb 6, 2010, 4:01:05 PM2/6/10
to simple-b...@googlegroups.com
Holed up in a cave with scala sounds like heaven to me :). I'm always busy at work with java and trying to keep the g/f happy at home. The latter I'm happy with but I would be much happier substituting the java with scala!

I committed some of what I was working on up on github: meow (http://github.com/softprops/meow)  a scala wrapper around growl and my sbt-growl-plugin (http://github.com/softprops/sbt-growl-plugin). It still needs some clean up and I need to put both up on a hosted mvn repo. At the moment I've been testing with both use sbt's publish-local so If you wanted to check it out now you'd need to clone meow, ./sbt, update, publish local and do the same for the sbt-growl-plugin. I will try to fix this tonight. Let me know what you think.


-Doug Tangren
http://lessis.me
Sent from New York, NY, United States

To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.

Doug Tangren

unread,
Feb 7, 2010, 7:46:12 PM2/7/10
to simple-b...@googlegroups.com
created a mvn repo on my host. see the readme [1] for more info.


-Doug Tangren
http://lessis.me

Antonio Salazar Cardozo

unread,
Feb 9, 2010, 12:03:04 PM2/9/10
to simple-build-tool
Nice. Yeah, I'm still new to scala so still getting over the early-
stage frustration ;)

Plugin looks great, though. I'll probably switch over to it whenever I
get unlazy enough to do so.
Antonio

On Feb 7, 7:46 pm, Doug Tangren <d.tang...@gmail.com> wrote:
> created a mvn repo on my host. see the readme [1] for more info.
>
> [1]http://github.com/softprops/sbt-growl-plugin#readme
>

> -Doug Tangrenhttp://lessis.me


>
>
>
> On Sat, Feb 6, 2010 at 4:01 PM, Doug Tangren <d.tang...@gmail.com> wrote:
> > Holed up in a cave with scala sounds like heaven to me :). I'm always busy
> > at work with java and trying to keep the g/f happy at home. The latter I'm
> > happy with but I would be much happier substituting the java with scala!
>
> > I committed some of what I was working on up on github: meow (
> >http://github.com/softprops/meow)  a scala wrapper around growl and
> > my sbt-growl-plugin (http://github.com/softprops/sbt-growl-plugin). It
> > still needs some clean up and I need to put both up on a hosted mvn repo. At
> > the moment I've been testing with both use sbt's publish-local so If you
> > wanted to check it out now you'd need to clone meow, ./sbt, update, publish
> > local and do the same for the sbt-growl-plugin. I will try to fix this
> > tonight. Let me know what you think.
>
> > -Doug Tangren
> >http://lessis.me
> > Sent from New York, NY, United States
>
> > On Fri, Feb 5, 2010 at 5:40 PM, Antonio Salazar Cardozo <
> > savedfastc...@gmail.com> wrote:
>
> >> Bah, this is what I get for holing up in a cave for a couple of days.

> >> I've got a simple plugin athttp://github.com/Shadowfiend/sbt-growl-tests


> >> .
>
> >> It depends on growlnotify and at the moment doesn't have icons, just
> >> text. I probably won't expand it too much beyond this, though, as this
> >> more or less meets my needs.
>
> >> Looking forward to what you come up with, Doug!
> >> Thanks,
> >> Antonio
>
> >> On Feb 5, 11:14 am, Doug Tangren <d.tang...@gmail.com> wrote:

> >> > Awesome,http://github.com/jstrachan/webbytest/looksneat. I will try to


> >> > integrate that with what I'm working on this weekend.
>
> >> > -Doug Tangrenhttp://lessis.me
>
> >> > On Fri, Feb 5, 2010 at 10:35 AM, James Strachan <
> >> james.strac...@gmail.com>wrote:
>
> >> > > On Feb 4, 2:27 pm, Doug Tangren <d.tang...@gmail.com> wrote:
> >> > > > will do
>
> >> > > BTW what I'd really like is the Growl message to include a hypertext
> >> > > link to the HTML report of the failed test cases...
>
> >> > >http://groups.google.com/group/simple-build-tool/browse_thread/thread.
> >> ..
>
> >> > > then I could just spin up sbt in continuous testing mode "~ test-
> >> > > quick" say - then just use growl notifications to get the big picture
> >> > > of passed/fail counts & the web browser to see whats going on if I
> >> > > want to look in more detail
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> Groups
> >> > > "simple-build-tool" group.
> >> > > To post to this group, send email to
> >> simple-b...@googlegroups.com.
> >> > > To unsubscribe from this group, send email to

> >> > > simple-build-t...@googlegroups.com<simple-build-tool%2Bunsubscr i...@googlegroups.com><simple-build-tool%2Bunsubscr

Doug Tangren

unread,
Feb 9, 2010, 5:22:57 PM2/9/10
to simple-b...@googlegroups.com
You and me both :) I'm fortunate to be friends with the gentleman who writes @ http://technically.us/code whose helped me out a ton. Thanks for showing interest!

-Doug Tangren
http://lessis.me


To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages