Skip to content

Patrol CLI commands are not recognized in Windows 11 and VSCode #412

Closed Answered by bartekpacia
lmlikota asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lmlikota!

I was running my tests using flutter test but if I understood it correctly when using nativeAutomation: true I have to use patrol drive?

That's right, you have to use patrol drive. It's required only if you use $.native (and I see you do). patrol drive does all the necessary setup work required to make tapping on native views, handling permission etc. work correctly.

If you only use our custom finders (the dollar – $), you should only flutter test :)

Now onto your problem. If after installing patrol_cli from pub.dev like this:

dart pub global activate patrol_cli

your system can't find the patrol executable, you most probably don't have pub cache added to your $PATH. Pleas…

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@lmlikota
Comment options

Answer selected by mateuszwojtczak
Comment options

You must be logged in to vote
1 reply
@lmlikota
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lmlikota
Comment options

Comment options

You must be logged in to vote
2 replies
@lmlikota
Comment options

@bartekpacia
Comment options

Comment options

You must be logged in to vote
3 replies
@lmlikota
Comment options

@bartekpacia
Comment options

@lmlikota
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants