An example project for Fluttium, used for testing.
This project contains 3 flavors:
- development
- staging
- production
Flavors for this example only work on iOS, Android, Web and Windows.
To run the desired flavor either use the following commands:
# Development
$ fluttium test flows/<flow_to_test.yaml> --flavor development --target lib/main_development.dart
# Staging
$ fluttium test flows/<flow_to_test.yaml> --flavor staging --target lib/main_staging.dart
# Production
$ fluttium test flows/<flow_to_test.yaml> --flavor production --target lib/main_production.dart
# None (only works on Linux and macOS)
$ fluttium test flows/<flow_to_test.yaml>
To run all unit and widget tests use the following command:
$ flutter test --coverage --test-randomize-ordering-seed random
To view the generated coverage report you can use lcov.
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
$ open coverage/index.html