EnableTestTracingRule
public
class
EnableTestTracingRule
extends LoggingBaseRule
When applied to a test class this TestRule
calls
Trace.beginSection()
before test method execution. The TestRule then calls
Trace.endSection()
after test method execution. The TestRule enables Systrace/Atrace
output to have discrete information about when/which test methods were run (which helps during
performance test debugging).
If the API level is less than 18 (Jelly Bean) this rule will do nothing since
Trace
isn't
supported.
Usage:
\@Rule
public EnableTestTracingRule mEnableTestTracing = new EnableTestTracingRule();
Summary
Inherited methods |
From
class
android.support.test.rule.logging.LoggingBaseRule
|
From
class
org.junit.rules.ExternalResource
void
|
after()
|
Statement
|
apply(Statement arg0, Description arg1)
|
void
|
before()
|
|
From
class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From
interface
org.junit.rules.TestRule
abstract
Statement
|
apply(Statement arg0, Description arg1)
|
|
Public constructors
EnableTestTracingRule
EnableTestTracingRule ()
Public methods
afterTest
void afterTest ()
beforeTest
void beforeTest ()