ahmedeltaher/MVVM-Kotlin-Android-Architecture

I need help with Espresso, no place founded solution

Opened this issue · 0 comments

Hi! I'm a spanish developer working in a project and I want to make first Espresso UI tests.

This is my code:

`@RunWith(AndroidJUnit4::class)
class FiltersFragmentTest {

private lateinit var sc: FragmentScenario<FiltersFragment>

@Before
fun setup() {
    sc = FragmentScenario.Companion.launchInContainer(FiltersFragment::class.java)
}

}`

Compiler errors due to FiltersFragment not inherits directly from Fragment of AndroidX, but indirectly.
The inheritance chain is
FiltersFragment is RPBaseFragment
RPBaseFragment is BaseFragment
Fragment is androidx.app.Fragment

Any clue how can i avoid this errors or is a bug from the library?
Thanks a lot!!