While working on another issue I ran flutter test test/integration.shard/gradle_jni_packaging_test.dart. The test failed because of changes I made which is expected. In the output I see To run this test again: /Users/reidbaker/flutter-work/bin/cache/dart-sdk/bin/dart test /Users/reidbaker/flutter-work/packages/flutter_tools/test/integration.shard/gradle_jni_packaging_test.dart -p vm --plain-name 'abiFilters provided by the user take precedence over the default' That command does not work but does align with the instructions in the local README.md
if you try to use dart you get
uilding package executable...
Built test:test.
00:00 +0 -1: abiFilters provided by the user take precedence over the default [E]
Unsupported operation: context.get<Platform> is not supported in test methods. Use Testbed or testUsingContext if accessing Zone injected values.
test/src/common.dart 249:5 _NoContext.get
package:flutter_tools/src/globals.dart 120:34 platform
test/src/common.dart 55:73 getFlutterRoot.invalidScript
test/src/common.dart 79:11 getFlutterRoot
test/integration.shard/test_utils.dart 20:3 flutterBin
test/integration.shard/test_utils.dart flutterBin
test/integration.shard/gradle_jni_packaging_test.dart 148:5 createProjectWithThirdpartyLib
test/integration.shard/gradle_jni_packaging_test.dart 49:34 main.<fn>
dart:async runZoned
test/src/common.dart 226:14 testWithoutContext.<fn>
test/src/common.dart 192:18 test.<fn>
To run this test again: /Users/reidbaker/flutter-work/bin/cache/dart-sdk/bin/dart test /Users/reidbaker/flutter-work/packages/flutter_tools/test/integration.shard/gradle_jni_packaging_test.dart -p vm --plain-name 'abiFilters provided by the user take precedence over the default'
00:00 +0 -1: Some tests failed.
This bug tracks either providing the correct command to run tests in the readme and on error test results or fixing the tests to work when run with dart.
While working on another issue I ran
flutter test test/integration.shard/gradle_jni_packaging_test.dart. The test failed because of changes I made which is expected. In the output I seeTo run this test again: /Users/reidbaker/flutter-work/bin/cache/dart-sdk/bin/dart test /Users/reidbaker/flutter-work/packages/flutter_tools/test/integration.shard/gradle_jni_packaging_test.dart -p vm --plain-name 'abiFilters provided by the user take precedence over the default'That command does not work but does align with the instructions in the local README.mdif you try to use dart you get
This bug tracks either providing the correct command to run tests in the readme and on error test results or fixing the tests to work when run with dart.