print intermediate and raw A/B results when not silent (#54676)

* print intermediate A/B results when not silent
* print raw A/B results when in loud mode
* add tests; handle missing metrics more gracefully
* use less fancy section header on Windows
This commit is contained in:
Yegor
2020-04-16 14:36:42 -07:00
committed by GitHub
parent ce83aaf38d
commit 20803507fd
6 changed files with 187 additions and 18 deletions

View File

@@ -9,6 +9,13 @@ import 'package:flutter_devicelab/framework/framework.dart';
/// Smoke test of a successful task.
Future<void> main() async {
await task(() async {
return TaskResult.success(<String, dynamic>{});
return TaskResult.success(<String, dynamic>{
'metric1': 42,
'metric2': 123,
'not_a_metric': 'something',
}, benchmarkScoreKeys: <String>[
'metric1',
'metric2',
]);
});
}