-
Presentation
-> https://docs.google.com/presentation/d/1NSChNk9U-jlXmy8kX_YXdruvk_ows28M6_WBpuRRKB0/edit?usp=sharing
-
Used API for sample App
- Install Flutter SDK -> https://flutter.dev/docs/get-started/install
- Install Android Studio -> https://developer.android.com/studio
- Get Emulator to test
- Open Android Studio
- Click Conigure -> AVD Manager
- Create Virtual Device
- Start the virtual Device
- Clone the Project at this Commit --> https://github.com/HitMan1206/se_eportfolio_example/tree/11251e8d6fed877389d1f188e2600e27df3d94f5
- Open it in IntelliJ
- Choose in the Project Settings the Flutter SDK as Project SDK
- run "flutter pub get"
=> If you need more help check https://flutter.dev/docs
If everything works try to write Tests for the Classes and Widgets.
An example of possible Tests you can find here -> https://github.com/HitMan1206/se_eportfolio_example
-
All tests have to be in the test folder
-
All tests have to end with
_test.dart -
All test files need a main function
-
Compare values with the expect function
-
Execute tests from your flutter root with the command
flutter test
-
All tests have to be in the test folder
-
All tests have to end with
_test.dart -
All test files need a main function
-
Compare number of found widgets with the expect function
-
Find widgets with a Finder (e.g.
find.text("text of the searched widget")) -
Execute tests from your flutter root with the command
flutter test
-
All tests have to be in the Test_driver folder
-
Execute tests from your flutter root with the command
flutter drive --target=test_driver/app.dart -
Executing only works with a running system (e.g. an emulator)
-
Each test needs two files
-
Executable File (named like you want, e.g.
app.dart)--> Contains everything to execute the test. It sets up the test and runs the app. Minimal file is as follows
-
Test File (named 'executable'_test.dart, e.g.
app_test.dart)--> Contains the tests you want to execute on your app. Structure is similar to an unit test.
-