• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2022 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_team: "trendy_team_testing",
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_robolectric_test {
22    enabled: true,
23
24    name: "MyRoboTests",
25
26    srcs: [
27        "src/**/*.java",
28    ],
29
30    exclude_srcs: [
31        "src/com/android/myroboapplication/WelcomeActivityStrictTest.java",
32    ],
33
34    java_resource_dirs: ["config"],
35
36    libs: [
37        "androidx.test.core",
38        "androidx.test.runner",
39    ],
40
41    instrumentation_for: "MyRoboApplication",
42
43    strict_mode: false,
44}
45
46android_robolectric_test {
47    enabled: true,
48
49    name: "MyRoboStrictTests",
50
51    srcs: [
52        "src/com/android/myroboapplication/WelcomeActivityStrictTest.java",
53    ],
54
55    java_resource_dirs: ["config"],
56
57    libs: [
58        "androidx.test.core",
59        "androidx.test.runner",
60        "androidx.test.ext.junit",
61    ],
62
63    instrumentation_for: "MyRoboApplication",
64
65}
66