mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-18 07:26:03 +00:00
- lowered espresso version
Took 12 minutes
This commit is contained in:
@@ -62,18 +62,14 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/reports/androidTests/connected
|
path: app/build/reports/androidTests/connected
|
||||||
destination: reports
|
destination: reports
|
||||||
# Then publish the artifacts of output!
|
|
||||||
- store_artifacts:
|
|
||||||
path: app/build/outputs
|
|
||||||
destination: outputs
|
|
||||||
# Then publish the artifacts of the Firebase emulator logs!
|
# Then publish the artifacts of the Firebase emulator logs!
|
||||||
- run:
|
- run:
|
||||||
name: save firebase emulator logs
|
name: save firebase emulator logs
|
||||||
command: |
|
command: |
|
||||||
mkdir -p /tmp/firebase_logs
|
mkdir -p tmp/firebase_logs
|
||||||
cp *.log /tmp/firebase_logs
|
cp *.log tmp/firebase_logs
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/firebase_logs
|
path: tmp/firebase_logs
|
||||||
destination: logs
|
destination: logs
|
||||||
# Then publish the results of the Instrumentation tests!
|
# Then publish the results of the Instrumentation tests!
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ dependencies {
|
|||||||
/ * Android Espresso */
|
/ * Android Espresso */
|
||||||
def testJunitVersion = "1.1.5"
|
def testJunitVersion = "1.1.5"
|
||||||
def testRunnerVersion = "1.5.2"
|
def testRunnerVersion = "1.5.2"
|
||||||
def espressoVersion = "3.5.0"
|
def espressoVersion = "3.4.0"
|
||||||
androidTestImplementation "androidx.test.ext:junit:$testJunitVersion"
|
androidTestImplementation "androidx.test.ext:junit:$testJunitVersion"
|
||||||
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
|
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
|
||||||
androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espressoVersion"
|
androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espressoVersion"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ open class BaseUiTest<T : BaseActivity<*>>(
|
|||||||
fun waitFor(delay: Long) {
|
fun waitFor(delay: Long) {
|
||||||
onView(isRoot()).perform(object : ViewAction {
|
onView(isRoot()).perform(object : ViewAction {
|
||||||
override fun getConstraints(): Matcher<View> = isRoot()
|
override fun getConstraints(): Matcher<View> = isRoot()
|
||||||
override fun getDescription(): String = "wait for $delay milliseconds"
|
override fun getDescription(): String? = "wait for $delay milliseconds"
|
||||||
override fun perform(uiController: UiController, v: View?) {
|
override fun perform(uiController: UiController, v: View?) {
|
||||||
uiController.loopMainThreadForAtLeast(delay)
|
uiController.loopMainThreadForAtLeast(delay)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user