Add a trivial integration test which just takes a screenshot

This required refactoring the code. With this we can now write an
integration test to test the main parts of the app, but more importantly
we can automate the process of generating the screenshots.
This commit is contained in:
Vishesh Handa
2019-02-16 00:16:32 +01:00
parent 07de868b26
commit 00355c532b
4 changed files with 94 additions and 51 deletions

7
test_driver/main.dart Normal file
View File

@ -0,0 +1,7 @@
import 'package:flutter_driver/driver_extension.dart';
import 'package:journal/app.dart';
void main() async {
enableFlutterDriverExtension();
await JournalApp.main();
}