Skip to content
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

I can't run tests in project ui/BasicSample #328

Open
sevenfirezzz opened this issue Jul 24, 2020 · 3 comments
Open

I can't run tests in project ui/BasicSample #328

sevenfirezzz opened this issue Jul 24, 2020 · 3 comments

Comments

@sevenfirezzz
Copy link

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 ?

@hoisie
Copy link
Collaborator

hoisie commented Jul 24, 2020

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

@sevenfirezzz
Copy link
Author

sevenfirezzz commented Jul 25, 2020

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
Copy link
Author

sevenfirezzz commented Jul 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants