Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
albertB4work opened this issue Jan 17, 2024 · 0 comments
Open

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

albertB4work opened this issue Jan 17, 2024 · 0 comments

Comments

@albertB4work
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant