-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add support to Espresso on Android #662
Comments
I was thinking about that already. I like your idea. Can you provide a pull request? |
I really want to, and that's a really easy two liner change. I have that done on my local machine. However, my company has strict policy on contribution to open source projects, so I can't without first going through the complicated review process. So hopefully someone else can do that. It's really quite simple, just two lines of code change. |
Why don’t you do it on your free time?
|
@SierraGolf @K76154 I took a stab at enabling Espresso support in #667 (without introducing a dependency on Espresso, since it does not look officially available through Maven). Comments are more than welcome. |
@brasmusson That's exactly what I was thinking. Just don't understand what those public static final fields are for. Thanks for making the pull request. |
@K76154 I don't understand the public fields either. I kept them as public in |
Take a look at the source of Instrumentation.java and InstrumentationTestRunner.java to understand the existence of these fields. |
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. |
Google released a new UI automation framework called Espresso, which I think is much better than Robotium after using it for few months. It will be great if cucumber-android can also support it. I've tried and it's actually a very simple change. Just make CucumberInstrumentation to extend Espresso's GoogleInstrumentationTestRunner, and move super.onCreate() call from the first line in onCreate() to the last line, and remove the start() in onCreate().
We may not want to have Espresso dependencies if the user isn't using it, so maybe the best way to do it is to create another Instrumentation like CucumberEspressoInstrumentation.
The text was updated successfully, but these errors were encountered: