Putin
11/16/2020, 6:50 AMUnresolved reference: testing
Unresolved reference: InstantTaskExecutorRule
This is my test class:
=========================================
package com.kotlin.practice.githubrepo.db
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class RepoDaoTest : DbTest() {
@get:Rule
var instantTaskExecutorRule = InstantTaskExecutorRule()
@Test
fun insertAndRead() { }
}
gildor
11/16/2020, 6:57 AMPutin
11/16/2020, 6:59 AM4.13
to 4.12
, and it work fine, not sure what happen with 4.13!Putin
11/16/2020, 7:02 AMtestImplementation 'androidx.test:core:1.3.0'
testImplementation "androidx.arch.core:core-testing:2.1.0"
androidTestImplementation "android.arch.persistence.room:testing:1.1.1"
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
gildor
11/16/2020, 7:03 AM