File tree Expand file tree Collapse file tree 3 files changed +42
-36
lines changed
src/androidTest/java/com/codingwithmitch/openapi Expand file tree Collapse file tree 3 files changed +42
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -112,5 +112,18 @@ dependencies {
112112 def mockWebServer = " 4.9.1"
113113 testImplementation " com.squareup.okhttp3:mockwebserver:$mockWebServer "
114114
115+ def espressoCore = " 3.4.0"
116+ androidTestImplementation " androidx.test.espresso:espresso-core:$espressoCore "
117+
118+ def espressoRunner = " 1.1.0"
119+ androidTestImplementation " androidx.test:runner:$espressoRunner "
120+
121+ def espressoRules = " 1.4.0"
122+ androidTestImplementation " androidx.test:rules:$espressoRules "
123+
124+ def junitKtx = " 1.1.3"
125+ androidTestImplementation " androidx.test.ext:junit-ktx:$junitKtx "
126+
127+
115128}
116129
Original file line number Diff line number Diff line change 1+ package com.codingwithmitch.openapi
2+
3+ import androidx.test.ext.junit.rules.ActivityScenarioRule
4+ import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
5+ import com.codingwithmitch.openapi.presentation.main.MainActivity
6+ import org.junit.Rule
7+ import org.junit.Test
8+ import org.junit.runner.RunWith
9+
10+ @RunWith(AndroidJUnit4ClassRunner ::class )
11+ class DummyTest {
12+
13+ @get:Rule
14+ val activityRule = ActivityScenarioRule (MainActivity ::class .java)
15+
16+ @Test
17+ fun dummyTest (){
18+ // does nothing
19+ }
20+ }
21+
22+
23+
24+
25+
26+
27+
28+
29+
You can’t perform that action at this time.
0 commit comments