Hello Adam,

> I can not find way to instruct gradle to use JUnit listeners
> (extending JUnit TestWatcher). What should I put in the test {}
> section of my build.gradle so it uses com.mypackage.MyListener while
> running JUnit tests?
> TestWatchers are just JUnit rules, so you use them the same way as any rule
> in JUnit: Attach the watcher to a test class as a field with an @Rule or
> @ClassRule annotation.
Thanks, but that is not it. :) I want to specify my listener globally,
let us say for all tests. Gradle used to allow it - at least for
TestNG (http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-addlisteners).
I would like to do the same for JUnit. Is it supported?

-- 
Regards / Pozdrawiam
Tomek Kaczanowski
http://practicalunittesting.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to