From 3f82be7aef5a52d6bd5de52779d09d275b889ef5 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Mon, 7 Aug 2023 16:24:06 +0100 Subject: [PATCH] - circleci update - test fixes --- .idea/androidTestResultsUserPreferences.xml | 39 +++++++++++++++++++ .../appttude/h_mal/atlas_weather/BaseTest.kt | 2 +- .../LocationProviderImplTest.kt | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-) rename app/src/androidTest/java/com/appttude/h_mal/atlas_weather/{data/location => instrumentationTests}/LocationProviderImplTest.kt (97%) diff --git a/.idea/androidTestResultsUserPreferences.xml b/.idea/androidTestResultsUserPreferences.xml index 1d9fb13..b3dab32 100644 --- a/.idea/androidTestResultsUserPreferences.xml +++ b/.idea/androidTestResultsUserPreferences.xml @@ -29,6 +29,19 @@ + + + + + + + @@ -55,6 +68,19 @@ + + + + + + + @@ -68,6 +94,19 @@ + + + + + + + diff --git a/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/BaseTest.kt b/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/BaseTest.kt index 2ead089..98a707c 100644 --- a/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/BaseTest.kt +++ b/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/BaseTest.kt @@ -55,8 +55,8 @@ open class BaseTest( scenario = ActivityScenario.launch(startIntent) scenario.onActivity { testActivity = it - afterLaunch() } + afterLaunch() } fun stubEndpoint(url: String, stub: Stubs) { diff --git a/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/data/location/LocationProviderImplTest.kt b/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/instrumentationTests/LocationProviderImplTest.kt similarity index 97% rename from app/src/androidTest/java/com/appttude/h_mal/atlas_weather/data/location/LocationProviderImplTest.kt rename to app/src/androidTest/java/com/appttude/h_mal/atlas_weather/instrumentationTests/LocationProviderImplTest.kt index 981abb1..ffe434d 100644 --- a/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/data/location/LocationProviderImplTest.kt +++ b/app/src/androidTest/java/com/appttude/h_mal/atlas_weather/instrumentationTests/LocationProviderImplTest.kt @@ -1,4 +1,4 @@ -package com.appttude.h_mal.atlas_weather.data.location +package com.appttude.h_mal.atlas_weather.instrumentationTests import androidx.test.ext.junit.runners.AndroidJUnit4