앱 단위·화면·통합 테스트

This commit is contained in:
Sn-Kinos
2026-10-04 01:43:10 +09:00
parent de44739e63
commit 4f6e1eac61
63 changed files with 14700 additions and 230 deletions
+22
View File
@@ -0,0 +1,22 @@
import 'dart:convert';
import 'dart:io';
import 'package:integration_test/integration_test_driver.dart';
/// 프레임 타이밍 결과를 파일로 떨어뜨리는 드라이버.
///
/// 기본 드라이버는 요약을 콘솔에만 남긴다. 성능 리포트가 수치를 인용해야 하므로
/// 원본 JSON 을 남겨 근거를 되짚을 수 있게 한다.
Future<void> main() => integrationDriver(
responseDataCallback: (data) async {
if (data == null) return;
final dir = Directory('build/perf')..createSync(recursive: true);
for (final entry in data.entries) {
final file = File('${dir.path}/${entry.key}.json');
file.writeAsStringSync(
const JsonEncoder.withIndent(' ').convert(entry.value),
);
stdout.writeln('[perf] saved ${file.path}');
}
},
);