forked from eatvio/eatvio_app
test(diary) App launch test
This commit is contained in:
15
test/launch_test.dart
Normal file
15
test/launch_test.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:eatvio_app/main.dart' as app;
|
||||
|
||||
void main() {
|
||||
testWidgets('Smoke test', (WidgetTester tester) async {
|
||||
// Запустить приложение
|
||||
app.main();
|
||||
|
||||
// Подождать, пока приложение загрузится
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Проверить, что нет ошибок
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user