diff --git a/packages/patrol_cli/lib/src/android/android_test_backend.dart b/packages/patrol_cli/lib/src/android/android_test_backend.dart index d4a50f5c8..52d7a7c9c 100644 --- a/packages/patrol_cli/lib/src/android/android_test_backend.dart +++ b/packages/patrol_cli/lib/src/android/android_test_backend.dart @@ -212,8 +212,10 @@ class AndroidTestBackend { if (flavor != null) { flavorPath = 'flavors/$flavor/'; } - final reportPath = + final path = 'file://${_rootDirectory.path}/build/app/reports/androidTests/connected/${flavorPath}index.html'; + final reportPath = + _platform.isWindows ? path.replaceAll(r'\', '/') : path; final patrolLogReader = PatrolLogReader( listenStdOut: processLogcat.listenStdOut,