fail_test_script.dart 870 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 19
  testWidgets('failing test 1', (WidgetTester tester) async {
    expect(true, false);
20 21
  });

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