Open johnpryan opened 2 years ago
@dnfield can you take a look at this? I'd love integration_test to work well on Windows.
After running the tests again, I can see one of the tests passing but another gets a TestDeviceException:
It looks like there's some sort of race condition when testing more than one file at a time... I can consistently run flutter test integration_test\app_test.dart -d windows
and flutter test integration_test\perf_test.dart -d windows
, but not flutter test integration_test -d windows
.
@cbracken might be better set up to help with this (or know who is). My access to Windows machines is fairly limited
Thanks for the heads-up. Taking a look.
@csells requested me to put here my findings.
All tests running on Windows 11 with the Git Bash on Windows Terminal.
Running flutter test integration_test -d windows
:
app_test.dart
runs and passesperf_test.dart
eventually fails with the following error (see logs)state_mgmt_test.dart
doesn't get to run, also fails (app is a weird state)Running flutter test integration_test/app_test.dart -d windows
:
q
to finish it)Running performance test:
flutter drive --driver=integration_test/perf_driver.dart --target=integration_test/perf_test.dart -d windows
Running state_mgmt_test.dart:
app_test.dart
: q
Removing the files drive.dart
perf_driver.dart
and perf_test.dart
from the integration_test
folder, then running flutter test integration_test -d windows
:
app_test.dart
runs and passes.state_mgmt_test.dart
starts and fails.integration_test
folder, the command flutter test integration_test
will fail on the second file.q
(or control+c).
After enabling Flutter desktop on Windows, running
flutter test integration_test -d windows
hangs until ctrl+c, then a TimeoutException is printed.@dnfield @csells I followed the setup instructions at https://docs.flutter.dev/desktop and I can successfully run the app under test (
flutter run -d windows
)The integration tests in this sample are currently failing on a macOS device: (https://github.com/flutter/samples/issues/999)
Logs
``` C:\Users\johnp\code\samples\testing_app>flutter test integration_test -d windows 00:00 +0: loading C:\Users\johnp\code\samples\testing_app\integration_test\app_test.dart B21:49 +0 -1: loading C:\Users\johnp\code\samples\testing_app\integration_test\app_test.dart [E] TimeoutException after 0:12:00.000000: Test timed out after 12 minutes. package:test_api/src/backend/invoker.dart 333:28 Invoker._handleError.