-
Notifications
You must be signed in to change notification settings - Fork 146
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
Stuck on executing tests of apk with entrypoint test_bundle.dart #1794
Comments
Same issue for me too. This is my issue. |
It happened to me also, the exact same thing. Running --verbose option it seems that it does not get any tests on the way: : > Task :app:connectedDebugAndroidTest
✗ Failed to execute tests of apk with entrypoint test_bundle.dart on emulator-5554 (Gradle test execution failed with code 1) (47.7s) |
Hi, sorry for the problems. Did it work on earlier versions and just broke on 2.3.0? If yes, you might be hitting #1725. |
In my case, I am new on patrol. I wanted to migrate some tests, but unable to do so. Followed the 'Getting started' in the docs. I changed the name test to 'test1', still having the same issue. Trying to debug it I found this error (executing it with debug with Intellij Idea, maybe it is not the way to do so). ClientException with SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 39400, uri=http://localhost:8081/initialize This exception is raised when the NativeAutomator is calling initialize(). |
Hey guys, My issue is different than yours. I don't get any error message - nor the execution fails. It's just stuck on |
You must use |
@shrijanRegmi Please create a new issue. |
Why should I create a new issue? I have created the issue with the same exact problem that I am having, if you check the title, description, logs. Everyone else is talking about their own error in the replies. |
Ah sorry, I didn't notice you're the OP. Anyway, all of you should attach output of |
Please try using latest patrol |
After test with the lastest version of patrol and patrol_cli 10-13 16:33:37.842 12268 12268 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo{com.example.app.test/pl.leancode.patrol.PatrolJUnitRunner}: java.lang.ClassNotFoundException: Didn't find class "pl.leancode.patrol.PatrolJUnitRunner" on path: DexPathList |
That's weird. Do you have ProGuard enabled? |
Yes, when I get home I will try to keep your files for testing |
|
@shrijanRegmi Did 2.3.1 also work for you? |
In my case I have to set |
Disabling ProGuard is not always an option, especially for release builds. We should advise users to exclude Patrol's classes in their proguard-rules.pro. |
Sure, I have only advised it for debugging purposes (buildType = debug) . I couldn't make it work trying to keep the classes in proguard file. |
If you think your issue is ProGuard-related, see #1804. If ProGuard is disabled in your build and it still fails to execute, then it's most likely an error in your setup. Make sure to thoroughly go over Getting Started again. I'm closing this since there's no minimal, reproducible sample was provided by the OP. Feel free to open a new issue with all the required information provided. |
Steps to reproduce
Actual results
Logs
Logs
logs_with_verbose.txt
Patrol version
patro: ^2.3.0
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: