Skip to content

Latest commit

 

History

History

example

Example

coverage style: very good analysis License: MIT Powered by Fluttium

An example project for Fluttium, used for testing.


Getting Started 🚀

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>

Running Tests 🧪

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