Patrol Test throwing 'Error: target integration_test/patrol.dart is invalid' #1723
Unanswered
vishalshettyafero
asked this question in
Q&A
Replies: 2 comments 2 replies
-
The test file must end with |
Beta Was this translation helpful? Give feedback.
2 replies
-
try this --> patrol test --flavor development --target integration_test/patrol.dart |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
patrol.dart code:
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
final fieldText = TextEditingController();
group(
'smoke test for the app',
() {
patrolTest(
'verify that user is about to create a group with no devices',nativeAutomation: true,
(PatrolTester $) async {
app.main();
await $.pumpAndSettle();
await Future.delayed(const Duration(seconds: 2));
final addbtn= find.byType(FloatingActionButton);
await $.tap(addbtn);
await $.pumpAndSettle();
await Future.delayed(const Duration(seconds: 2));
await $.native.pressBack();
await $.native.pressHome();
await Future.delayed(const Duration(seconds: 5));
},
);
}
);
}
4. Command to exectute the test : patrol test --target integration_test/patrol.dart --flavor development
5. It throws an 'Error: target integration_test/patrol.dart is invalid'
What could be the reason as I am able to execute the flutter tests successfully?
Beta Was this translation helpful? Give feedback.
All reactions