pass_test_script.dart 868 Bytes
Newer Older
1 2 3 4
// 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.

Dan Field's avatar
Dan Field committed
5 6
import 'dart:convert';

7
import 'package:flutter_test/flutter_test.dart';
8
import 'package:integration_test/integration_test.dart';
9

Dan Field's avatar
Dan Field committed
10
Future<void> main() async {
11
  final IntegrationTestWidgetsFlutterBinding binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
12
  binding.allTestsPassed.future.then((_) {
13 14
    // We use this print to communicate with ../binding_fail_test.dart
    // ignore: avoid_print
15 16
    print('IntegrationTestWidgetsFlutterBinding test results: ${jsonEncode(binding.results)}');
  });
17

Dan Field's avatar
Dan Field committed
18
  testWidgets('passing test 1', (WidgetTester tester) async {
19 20 21
    expect(true, true);
  });

Dan Field's avatar
Dan Field committed
22
  testWidgets('passing test 2', (WidgetTester tester) async {
23 24 25
    expect(true, true);
  });
}