Skip to content

Commit a2e1041

Browse files
committed
add dummy ui test
1 parent abccf7b commit a2e1041

File tree

3 files changed

+42
-36
lines changed

3 files changed

+42
-36
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

app/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+

0 commit comments

Comments
 (0)