File tree 3 files changed +8
-1
lines changed
packages/patrol_cli/lib/src
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ class AndroidTestBackend {
188
188
Future <void > execute (
189
189
AndroidAppOptions options,
190
190
Device device, {
191
+ String ? flavor,
191
192
bool interruptible = false ,
192
193
required bool showFlutterLogs,
193
194
required bool showTestSteps,
@@ -207,8 +208,12 @@ class AndroidTestBackend {
207
208
)
208
209
..disposedBy (scope);
209
210
211
+ var flavorPath = '' ;
212
+ if (flavor != null ) {
213
+ flavorPath = 'flavors/$flavor /' ;
214
+ }
210
215
final reportPath =
211
- 'file://${_fs .currentDirectory .path }/build/app/reports/androidTests/connected/index.html' ;
216
+ 'file://${_fs .currentDirectory .path }/build/app/reports/androidTests/connected/${ flavorPath } index.html' ;
212
217
213
218
final patrolLogReader = PatrolLogReader (
214
219
listenStdOut: processLogcat.listenStdOut,
Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ class DevelopCommand extends PatrolCommand {
339
339
interruptible: true ,
340
340
showFlutterLogs: showFlutterLogs,
341
341
showTestSteps: showTestSteps,
342
+ flavor: flutterOpts.flavor,
342
343
);
343
344
final package = android.packageName;
344
345
if (package != null && uninstall) {
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ See https://github.com/leancodepl/patrol/issues/1316 to learn more.
356
356
device,
357
357
showFlutterLogs: showFlutterLogs,
358
358
showTestSteps: showTestSteps,
359
+ flavor: flutterOpts.flavor,
359
360
);
360
361
final package = android.packageName;
361
362
if (package != null && uninstall) {
You can’t perform that action at this time.
0 commit comments