diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 16d5e86..aff313d 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -13,6 +13,9 @@ + + \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts index aa214c2..6cd7c4d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -46,6 +46,7 @@ dependencies { implementation("com.google.firebase:firebase-database:20.3.0") implementation("com.google.firebase:firebase-firestore:24.9.1") implementation("com.google.firebase:firebase-storage:20.3.0") + implementation("androidx.test.ext:truth:1.5.0") testImplementation("org.junit.jupiter:junit-jupiter:5.8.1") implementation ("com.makeramen:roundedimageview:2.3.0") implementation ("com.airbnb.android:lottie:4.1.0") @@ -74,8 +75,19 @@ dependencies { // Robolectric dependencies for unit tests testImplementation("org.robolectric:robolectric:4.7.3") //to run Android tests in the JVM without the need for an emulator or real device. + + //dependencies for ui_test androidTestImplementation("androidx.test:rules:1.5.0") - - + // AndroidX Test - Instrumentation Testing + androidTestImplementation("androidx.test:runner:1.5.2") + androidTestImplementation("androidx.test:rules:1.5.0") + // Espresso + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + // Mockito + testImplementation("org.mockito:mockito-core:5.12.0") + androidTestImplementation("org.mockito:mockito-android:4.0.0") + // Activity Scenario + androidTestImplementation("androidx.test:core:1.5.0") + androidTestImplementation("androidx.test.ext:junit:1.1.5") } \ No newline at end of file diff --git a/app/src/androidTest/java/com/example/projecto/activities/ViewAllActivityTest.java b/app/src/androidTest/java/com/example/projecto/activities/ViewAllActivityTest.java deleted file mode 100644 index f075b10..0000000 --- a/app/src/androidTest/java/com/example/projecto/activities/ViewAllActivityTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.example.projecto.activities; - -import static org.junit.Assert.assertEquals; - -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; - - -import com.example.projecto.models.ViewAllModel; - - -public class ViewAllActivityTest { - - - - - -}