Wiki

Clone wiki

junit-extension / Home

How to use

  1. Extend ClassRunListener to implement your functionality
  2. Create test and add @RunWith(JunitListenerRunner.class) and @Listenres(MyListener.class) annotations to it. Test example
  3. Run the test.

If you have a lot of test which uses the same ClassRunListenres you may need to extend JunitListenerRunner and add listeners to the classRunNotifier. example

If you have any problem with the extension or you have some notice how to improve, please create an issue.

Updated