Skip to content

I need help with Espresso, no place founded solution #39

Open
@albertB4work

Description

@albertB4work

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions