-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36a79a4
commit 48c229e
Showing
3 changed files
with
124 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:gariban/main.dart'; | ||
|
||
void main() { | ||
testWidgets('App should build without crashing', (WidgetTester tester) async { | ||
await tester.pumpWidget(const MyApp()); | ||
testWidgets('Smoke test', (WidgetTester tester) async { | ||
// Basit bir widget ile test | ||
await tester.pumpWidget( | ||
const MaterialApp( | ||
home: Scaffold( | ||
body: Text('Test'), | ||
), | ||
), | ||
); | ||
|
||
// Widget'ın render edildiğini kontrol et | ||
expect(find.text('Test'), findsOneWidget); | ||
}); | ||
} |