mirror of
https://github.com/hamaluik/timecop.git
synced 2025-05-17 08:46:12 +08:00
21 lines
524 B
Dart
21 lines
524 B
Dart
// ignore_for_file: avoid_print
|
|
|
|
import 'dart:io';
|
|
import 'package:integration_test/integration_test_driver_extended.dart';
|
|
|
|
Future<void> main() async {
|
|
try {
|
|
await integrationDriver(
|
|
onScreenshot: (String screenshotName, List<int> screenshotBytes,
|
|
[args]) async {
|
|
final File image = await File('screenshots/$screenshotName.png')
|
|
.create(recursive: true);
|
|
image.writeAsBytesSync(screenshotBytes);
|
|
return true;
|
|
},
|
|
);
|
|
} catch (e) {
|
|
// Do nothing
|
|
}
|
|
}
|