summaryrefslogtreecommitdiff
path: root/feature/settings
diff options
context:
space:
mode:
Diffstat (limited to 'feature/settings')
-rw-r--r--feature/settings/src/androidTest/Android.bp22
-rw-r--r--feature/settings/src/androidTest/AndroidManifest.xml32
-rw-r--r--feature/settings/src/androidTest/AndroidTest.xml28
3 files changed, 82 insertions, 0 deletions
diff --git a/feature/settings/src/androidTest/Android.bp b/feature/settings/src/androidTest/Android.bp
new file mode 100644
index 0000000..b0aa3bb
--- /dev/null
+++ b/feature/settings/src/androidTest/Android.bp
@@ -0,0 +1,22 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_test {
+ name: "jetpack-camera-app_feature_settings-tests",
+ team: "trendy_team_camerax",
+ srcs: ["java/**/*.kt"],
+ static_libs: [
+ "androidx.test.runner",
+ "androidx.test.ext.junit",
+ "kotlinx_coroutines_test",
+ "androidx.compose.runtime_runtime",
+ "androidx.compose.ui_ui-test-junit4",
+ ],
+ instrumentation_for: "jetpack-camera-app_feature_settings",
+ sdk_version: "34",
+ test_suites: ["general-tests"],
+ optimize: {
+ enabled: false,
+ },
+}
diff --git a/feature/settings/src/androidTest/AndroidManifest.xml b/feature/settings/src/androidTest/AndroidManifest.xml
new file mode 100644
index 0000000..6f4506b
--- /dev/null
+++ b/feature/settings/src/androidTest/AndroidManifest.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2015 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.google.jetpackcamera.feature.settings.test" >
+
+ <instrumentation
+ android:name="androidx.test.runner.AndroidJUnitRunner"
+ android:label="Settings Android Tests"
+ android:targetPackage="com.google.jetpackcamera.feature.settings" />
+
+ <application>
+ <uses-library android:name="android.test.runner" />
+ </application>
+
+</manifest>
+
+
diff --git a/feature/settings/src/androidTest/AndroidTest.xml b/feature/settings/src/androidTest/AndroidTest.xml
new file mode 100644
index 0000000..eafe767
--- /dev/null
+++ b/feature/settings/src/androidTest/AndroidTest.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2024 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<configuration description="Runs Settings Test Cases.">
+ <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
+ <option name="cleanup-apks" value="true" />
+ <option name="test-file-name" value="jetpack-camera-app_feature_settings-tests.apk" />
+ </target_preparer>
+
+ <option name="test-tag" value="jetpack-camera-app_feature_settings-tests" />
+ <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
+ <option name="package" value="com.google.jetpackcamera.settings.preview.test" />
+ <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
+ </test>
+</configuration>
+