-
Notifications
You must be signed in to change notification settings - Fork 8
follow documentation for patrol #16
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
base: master
Are you sure you want to change the base?
Conversation
Command used
Log error
patrol build android --target integration_test/house_mocked_integration_test.dart,integration_test/house_mocked_integration2_test.dart --dart-define=isTestApp=true
✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (9.2s) |
android/app/build.gradle
Outdated
@@ -43,11 +43,12 @@ android { | |||
|
|||
defaultConfig { | |||
applicationId "com.malugu.housestats" | |||
minSdkVersion flutter.minSdkVersion | |||
minSdkVersion 19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to change this for multidex
@@ -65,8 +66,9 @@ flutter { | |||
|
|||
dependencies { | |||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | |||
implementation "androidx.multidex:multidex:2.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to add it for multidex
expect($('House details'), findsOneWidget); | ||
expect($('1house'), findsOneWidget); | ||
}, | ||
nativeAutomation: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's because you're using Dart older than 2.17.
https://dart.dev/guides/language/evolution#dart-217
Dart 2.17 removed some restrictions on named arguments. Named arguments can now be freely interleaved with positional arguments.
Currently running into
Now able to invoke the test locally with
patrol test --target integration_test/house_mocked_integration_test.dart --dart-define=isTestApp=true --verbose
and runs on my device