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

Unable to run tests on physical devices #1949

Closed
Skisperd opened this issue Nov 23, 2023 · 4 comments
Closed

Unable to run tests on physical devices #1949

Skisperd opened this issue Nov 23, 2023 · 4 comments
Assignees

Comments

@Skisperd
Copy link

Steps to reproduce

patrol test --target integration_test\resources\tests/login\login_test.dart --flavor dev --release

Actual results

`Building apk with entrypoint test_bundle.dart...
integration_test/test_bundle.dart:50:50: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
final binding = PatrolBinding.ensureInitialized(NativeAutomatorConfig());
^
/C:/Users/tfdia/AppData/Local/Pub/Cache/hosted/pub.dev/patrol-2.3.2/lib/src/binding.dart:104:11: Context: Found this candidate, but the arguments don't match.
factory PatrolBinding.ensureInitialized() {
^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

    FAILURE: Build failed with an exception.`

Captura de tela 2023-11-23 053917

Logs

Logs
<!-- Replace this line with your logs. Do not remove the backticks! -->

Patrol version

patrol_cli v2.3.0

Patrol 2.3.2

Patrol Doctor output

Captura de tela 2023-11-23 054106

Flutter Doctor output

Captura de tela 2023-11-23 054151

@jBorkowska jBorkowska self-assigned this Nov 23, 2023
@jBorkowska
Copy link
Collaborator

Hi @Skisperd! I see that you use patrol 2.3.2, so you should use older CLI - version 2.2.2 instead of 2.3.0, bc the newer one requires at least patrol v3.0.

Closing as it is not a bug, if you find a bug or have a feature request, please open new issue. If you have another questions, join our Discord, we'll try to help you there. Link to Discord: https://discord.gg/K5hq2Stw

@Origogi
Copy link

Origogi commented Nov 23, 2023

@jBorkowska
I want to join discord but invalid link

@jBorkowska
Copy link
Collaborator

jBorkowska commented Nov 23, 2023

That's weird. Anyway, here's new link: https://discord.gg/ukBK5t4EZg

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants