Add basic codegen app to be used for integration testing and benchmarks (#27257)

This commit is contained in:
Jonah Williams
2019-02-14 23:17:16 -08:00
committed by GitHub
parent 3205736fcf
commit 67cf21577f
47 changed files with 1027 additions and 189 deletions

View File

@@ -0,0 +1,23 @@
// Copyright 2019 The Chromium 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_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
void main() {
FlutterDriver driver;
setUpAll(() async {
driver = await FlutterDriver.connect();
});
test('Can execute generated code', () async {
const String button = 'Press Button, Get Coffee';
await driver.tap(find.text(button));
const String message = 'Thanks for using PourOverSupremeFiesta by Coffee by Flutter Inc.';
final String fullMessage = await driver.getText(find.text(message));
expect(fullMessage, message);
});
}