testing-samples
testing-samples copied to clipboard
I can't run tests in project ui/BasicSample
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 ?
What's the command you tried to run, and can you provide the full error message?
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.
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