diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 033418e..c0c1247 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,27 +77,3 @@ jobs: uses: gradle/gradle-build-action@v3 with: arguments: testDebugUnitTest - - android-tests: - if: github.event.pull_request.draft == false - name: Android Tests - runs-on: macos-latest - timeout-minutes: 30 - - steps: - - name: Check out repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - - - name: Set up Java environment - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 17 - - - name: Set up Android environment - uses: android-actions/setup-android@v3 - - - name: Run Android tests (Pixel 7 API 33) - uses: gradle/gradle-build-action@v3 - with: - arguments: pixel7Api33DebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect diff --git a/app/build.gradle.kts b/app/build.gradle.kts index b430f72..87dae36 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -65,23 +65,9 @@ android { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } - - testOptions { - managedDevices { - devices { - maybeCreate("pixel7Api33").apply { - device = "Pixel 7" - apiLevel = 33 - systemImageSource = "google" - } - } - } - } } dependencies { - androidTestImplementation(libs.androidx.compose.ui.test.junit4) - androidTestImplementation(platform(libs.androidx.compose.bom)) coreLibraryDesugaring(libs.android.desugarJdkLibs) debugImplementation(libs.androidx.compose.ui.test.manifest) debugImplementation(libs.androidx.compose.ui.tooling) diff --git a/app/src/androidTest/kotlin/com/sindrenm/templates/project/main/MainScreenTest.kt b/app/src/androidTest/kotlin/com/sindrenm/templates/project/main/MainScreenTest.kt deleted file mode 100644 index a7ae236..0000000 --- a/app/src/androidTest/kotlin/com/sindrenm/templates/project/main/MainScreenTest.kt +++ /dev/null @@ -1,20 +0,0 @@ -package com.sindrenm.templates.project.main - -import androidx.compose.ui.test.junit4.createComposeRule -import androidx.compose.ui.test.onNodeWithText -import org.junit.Rule -import org.junit.Test - -class MainScreenTest { - @get:Rule - val composeTestRule = createComposeRule() - - @Test - fun screenTitleIsVisible() { - composeTestRule.setContent { - MainScreen() - } - - composeTestRule.onNodeWithText("Android Template").assertExists() - } -} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0bb93ae..cf2d1ff 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -32,7 +32,6 @@ androidx-compose-material-icons-extended = { module = "androidx.compose.material androidx-compose-material3 = { module = "androidx.compose.material3:material3" } androidx-compose-runtime = { module = "androidx.compose.runtime:runtime" } androidx-compose-ui = { module = "androidx.compose.ui:ui" } -androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4" } androidx-compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest" } androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" } androidx-compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }