Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
burak-58 committed Nov 13, 2023
1 parent 6c5060a commit 9c7fdd9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,26 @@ public void after() {
@Override
protected void failed(Throwable e, Description description) {
Log.i("TestWatcher", "*** "+description + " failed!\n");
InstrumentationRegistry.getInstrumentation().sendStringSync("*** "+description + " failed!\n");
}

@Override
protected void succeeded(Description description) {
Log.i("TestWatcher", "*** "+description + " succeeded!\n");
InstrumentationRegistry.getInstrumentation().sendStringSync("*** "+description + " succeeded!\n");

}

protected void starting(Description description) {
Log.i("TestWatcher", "******\n*** "+description + " starting!\n");
InstrumentationRegistry.getInstrumentation().sendStringSync("******\n*** "+description + " starting!\n");

}

protected void finished(Description description) {
Log.i("TestWatcher", "*** "+description + " finished!\n******\n");
InstrumentationRegistry.getInstrumentation().sendStringSync("*** "+description + " finished!\n******\n");

}
};

Expand Down

0 comments on commit 9c7fdd9

Please sign in to comment.