Skip to content

Support Espresso 2.0 #813

New issue

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

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

Already on GitHub? # to your account

Closed
K76154 opened this issue Dec 23, 2014 · 8 comments
Closed

Support Espresso 2.0 #813

K76154 opened this issue Dec 23, 2014 · 8 comments

Comments

@K76154
Copy link
Contributor

K76154 commented Dec 23, 2014

The Espresso has just released its 2.0 version, and it changed its instrumentation test runner. As a result, Cucumber-android needs to be updated to support this new version.

@aslakhellesoy
Copy link
Contributor

Can you be more specific? Or send a pull request?

@K76154
Copy link
Contributor Author

K76154 commented Dec 23, 2014

Check this: https://plus.google.com/+AndroidDevelopers/posts/jHXFkebKjEb

The Espresso 2.0 changes its instrumentation test runner from GoogleInstrumentationTestRunner to AndroidJunitTestRunner. CucumberInstrumentation is currently inheriting GoogleInstrumentationTestRunner, so it needs to be updated to support this new test runner.

@aslakhellesoy
Copy link
Contributor

Where exactly does cucumber-android need to change?

@aslakhellesoy
Copy link
Contributor

Never mind, replied too soon

@SierraGolf
Copy link
Contributor

I don't get it, where does CucumberInstrumentation inherit from GoogleInstrumentationTestRunner?

Cucumber for android has no dependency to espresso what so ever. Please revisit #662 and #667 for more info.

@brasmusson
Copy link
Contributor

As far as I can see cucumber-android does not need to be changed. To use Espresso you need to define your own instrumentation class, see #667. To use Espresso 2.0, that class should inherit from AndroidJunitTestRunner, instead of GoogleInstrumentationTestRunner.

@K76154
Copy link
Contributor Author

K76154 commented Dec 23, 2014

Ah, I didn't check that, sorry. That should be enough to support the new Espresso 2.0.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants