[flutter_tools] add support for dart defines to flutter test (#70791)

This commit is contained in:
Jonah Williams
2020-11-18 14:52:49 -08:00
committed by GitHub
parent e26c7f98ff
commit f4e79e6828
7 changed files with 31 additions and 49 deletions

View File

@@ -0,0 +1 @@
[0-9]+:[0-9]+ [+]1: All tests passed!

View File

@@ -0,0 +1,11 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
void main() {
test('Dart defines can be provided', () {
expect(const String.fromEnvironment('flutter.test.foo'), 'bar');
});
}