yfmilu / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Add API for adding RunListeners to AndroidJUnitRunner #159

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It looks like you can add RunListeners by setting the "listener" argument on 
the command line or Manifest, but it would be nice if there was an 
addListener(RunListener) API on AndroidJUnitRunner.

Original issue reported on code.google.com by YogurtE...@gmail.com on 23 Jun 2015 at 1:34

GoogleCodeExporter commented 9 years ago
The reason we didn't want to provide this API before is because that would 
require callers to extend AJUR to call it which we were trying to avoid. Can 
you please elaborate on a use case for this? 

Original comment by nkors...@google.com on 14 Aug 2015 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by slinz...@google.com on 15 Sep 2015 at 10:58

GoogleCodeExporter commented 9 years ago
I want to be able to take a screen shot when a test fails or throws an 
exception. I cant use a FailureHandler because it is called when exceptions are 
caught and handled. It looks like a runListener would solve this problem. 

Original comment by BC.Step...@gmail.com on 18 Sep 2015 at 4:46