22 lines
834 B
Dart
22 lines
834 B
Dart
// This is a basic Flutter widget test.
|
|
//
|
|
// To perform an interaction with a widget in your test, use the WidgetTester
|
|
// utility in the flutter_test package. For example, you can send tap and scroll
|
|
// gestures. You can also use WidgetTester to find child widgets in the widget
|
|
// tree, read text, and verify that the values of widget properties are correct.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:lanebow/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('앱이 정상적으로 시작되어야 함', (WidgetTester tester) async {
|
|
// 테스트 환경에서 앱이 정상 시작되는지만 확인
|
|
await tester.pumpWidget(const MyApp());
|
|
|
|
// 앱이 정상적으로 렌더링되었는지 확인
|
|
expect(find.byType(MaterialApp), findsOneWidget);
|
|
});
|
|
}
|