Annotation Type DoNotRecord
-
@Retention(RUNTIME) @Target(METHOD) public @interface DoNotRecord
Annotation given to some tests to indicate that network calls made during the test shouldn't be recorded.Pass
true
forskipInPlayback
to indicate that the test shouldn't run when tests are ran inTestMode.PLAYBACK
. A common case for setting this totrue
is when the test has either sensitive content that cannot be redacted or calls into code that cannot be mocked.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
skipInPlayback
Returns whether the test will be ignored during aplayback
test run.
-
-
-
Element Detail
-
skipInPlayback
boolean skipInPlayback
Returns whether the test will be ignored during aplayback
test run.- Returns:
- Flag indicating if the test will be ignored during a playback test run.
- Default:
- false
-
-