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 upstream: true, 44 45 strict_mode: false, 46} 47 48android_robolectric_test { 49 enabled: true, 50 51 name: "MyRoboStrictTests", 52 53 srcs: [ 54 "src/com/android/myroboapplication/WelcomeActivityStrictTest.java", 55 ], 56 57 java_resource_dirs: ["config"], 58 59 libs: [ 60 "androidx.test.core", 61 "androidx.test.runner", 62 "androidx.test.ext.junit", 63 ], 64 65 instrumentation_for: "MyRoboApplication", 66 67 upstream: true, 68} 69