android / android/testing-samples

Espresso Must run under a registering instrumentation

Open
#149 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.3k
Forks
3.6k
PR merge metrics
No merged PRs in 30d

Description

I want to use espresso classes outside of android test package. I added espresso with compile keyword into gradle file and I access espresso classes into normal app classes. But, When I run app, I get an exception as "android espresso Must run under a registering instrumentation."

Our Android studio 3.0.0 and espress 3.0.0.

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start with the Gradle file and the normal app classes that access Espresso, then compare that usage with the reported registering-instrumentation exception. Done means determining whether this setup is supported and identifying the relevant Android test boundary.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.