pass_test_script.dart 796 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 12
  final IntegrationTestWidgetsFlutterBinding binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized() as IntegrationTestWidgetsFlutterBinding;

Dan Field's avatar
Dan Field committed
13
  testWidgets('passing test 1', (WidgetTester tester) async {
14 15 16
    expect(true, true);
  });

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

  tearDownAll(() {
    print(
Dan Field's avatar
Dan Field committed
23
        'IntegrationTestWidgetsFlutterBinding test results: ${jsonEncode(binding.results)}');
24 25
  });
}