testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

I can't run tests in project ui/BasicSample

Open sevenfirezzz opened this issue 5 years ago • 3 comments

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 ?

sevenfirezzz avatar Jul 24 '20 09:07 sevenfirezzz

What's the command you tried to run, and can you provide the full error message?

hoisie avatar Jul 24 '20 18:07 hoisie

What's the command you tried to run, and can you provide the full error message?

I just import the project and click the run button(left beside ChangeTextBehaviorLocalTest.class in Android Studio) . This is all I get, just one line error message.

sevenfirezzz avatar Jul 25 '20 02:07 sevenfirezzz

What's the command you tried to run, and can you provide the full error message? And I try this guide too,but still...

Create and run the local Test configuration Open Run menu | Edit Configurations Add a new *Android JUnit * configuration Set Use classpath of module to app Set Class to ChangeTextBehaviorLocalTest Run the configuration The test will run on local host

sevenfirezzz avatar Jul 25 '20 02:07 sevenfirezzz