File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
runner/android_junit_runner
java/androidx/test/filters Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 9
9
* Exceptions during ` @AfterClass ` were not being reported via ` InstrumentationResultPrinter ` .
10
10
* Exceptions arising in AndroidJUnitRunner.buildRequest are now handled.
11
11
* Assumption failures during a ClassRule or BeforeClass are now reported more consistently via ` InstrumentationResultPrinter `
12
+ * Clarify SdkSuppress reference docs
12
13
13
14
** New Features**
14
15
Original file line number Diff line number Diff line change 21
21
import java .lang .annotation .Target ;
22
22
23
23
/**
24
- * Indicates that a specific test or class should or should not be run on certain API levels.
24
+ * Indicates that a specific test or class should not be run on certain API levels.
25
25
*
26
- * <p>Test(s) will be skipped when executed on android platforms less/more than specified level
27
- * (inclusive) or executed on an android platform whose SDK level is in the excludedSdks list.
26
+ * <p>Test(s) will be skipped when executed on Android platforms with SDK API level:
27
+ *
28
+ * <ul>
29
+ * <li>less than specified minSdkVersion OR
30
+ * <li>greater than specified maxSdkVersion OR
31
+ * <li>in the excludedSdks list.
32
+ * </ul>
28
33
*
29
34
* <p>If {@code @SdkSuppress} is applied at both the class and test method, the test method
30
35
* annotation takes precedence, and the class level {@code @SdkSuppress} is ignored.
36
41
int minSdkVersion () default 1 ;
37
42
/** The maximum API level to execute (inclusive) */
38
43
int maxSdkVersion () default Integer .MAX_VALUE ;
39
- /** The list of SDK versions to exclude */
44
+
45
+ /** The (additional) list of SDK versions to exclude */
40
46
int [] excludedSdks () default {};
47
+
41
48
/**
42
49
* The {@link android.os.Build.VERSION.CODENAME} to execute on. This is intended to be used to run
43
50
* on a pre-release SDK, where the {@link android.os.Build.VERSION.SDK_INT} has not yet been
You can’t perform that action at this time.
0 commit comments