Remove the warning about the Integration Test plugin (#79520)

This commit is contained in:
Jia Hao
2021-04-02 09:49:02 +08:00
committed by GitHub
parent 42c5f71c52
commit e868a8335b
4 changed files with 66 additions and 17 deletions

View File

@@ -401,6 +401,10 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
if (_isIntegrationTest) {
integrationTestDevice = await findTargetDevice();
// Disable reporting of test results to native test frameworks. This isn't
// needed as the Flutter Tool will be responsible for reporting results.
buildInfo.dartDefines.add('INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false');
if (integrationTestDevice == null) {
throwToolExit(
'No devices are connected. '