Skip to content

Instantly share code, notes, and snippets.

@ultimate-qa2
Created February 16, 2021 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultimate-qa2/70ff366adb4346a7965bcd6d26104ddf to your computer and use it in GitHub Desktop.
Save ultimate-qa2/70ff366adb4346a7965bcd6d26104ddf to your computer and use it in GitHub Desktop.
@Rule
public TestWatcher watcher = new TestWatcher() {
@Override
protected void failed(Throwable e, Description description) {
System.out.println(description.getMethodName() + ": Failed");
}
@Override
protected void succeeded(Throwable e, Description description) {
System.out.println(description.getMethodName() + ": Succeeded");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment