android / android/testing-samples

I can't run tests in project ui/BasicSample

Open
#328 3 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 can install the app and use it.
But when I want to run a test, it shows error like this:

`Illegal character in opaque part at index 11: jar:file:D:\04_myproject\official\testing-samples-master\ui\espresso\BasicSample\app\build\intermediates\apk_for_local_test\debugUnitTest\packageDebugUnitTestForUnitTest\apk-for-local-test.ap_`

What should I do ?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the test run in ui/espresso/BasicSample and inspect the generated APK path shown in the error. Trace where the jar:file URI is created during the local-test APK handling. Done means the BasicSample tests run without the illegal-character exception and produce their expected results.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.