migrate macrobenchmark/multi_widget_construction test to e2e (#62539)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
@@ -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';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user