Save results of A/B test runs in a JSON file for future processing (#56416)

This commit is contained in:
Jim Graham
2020-05-08 00:34:02 -07:00
committed by GitHub
parent da66a45e87
commit 3519bec6c4
5 changed files with 300 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ import 'common.dart';
void main() {
test('ABTest', () {
final ABTest ab = ABTest();
final ABTest ab = ABTest('engine', 'test');
for (int i = 0; i < 5; i++) {
ab.addAResult(<String, dynamic>{
@@ -28,6 +28,7 @@ void main() {
'benchmarkScoreKeys': <String>['i', 'k'],
});
}
ab.finalize();
expect(
ab.rawResults(),