migrate macrobenchmark/multi_widget_construction test to e2e (#62539)

This commit is contained in:
Ming Lyu (CareF)
2020-08-04 21:56:03 -04:00
committed by GitHub
parent f64bc77a2d
commit 1d329d2cc9
5 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
// 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 'dart:async';
import 'package:flutter_devicelab/tasks/perf_tests.dart';
import 'package:flutter_devicelab/framework/adb.dart';
import 'package:flutter_devicelab/framework/framework.dart';
Future<void> main() async {
deviceOperatingSystem = DeviceOperatingSystem.android;
await task(createsMultiWidgetConstructPerfE2ETest());
}

View File

@@ -269,6 +269,13 @@ TaskFunction createsMultiWidgetConstructPerfTest() {
).run;
}
TaskFunction createsMultiWidgetConstructPerfE2ETest() {
return E2EPerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test/multi_widget_construction_perf_e2e.dart',
).run;
}
TaskFunction createFramePolicyIntegrationTest() {
final String testDirectory =
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks';

View File

@@ -172,6 +172,13 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
multi_widget_construction_perf__e2e_summary:
description: >
Measures the runtime performance of constructing and destructing widgets on Android.
stage: devicelab
required_agent_capabilities: ["linux/android"]
flaky: true
frame_policy_delay_test_android:
description: >
Tests the effect of LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive