Example repository showcasing a pipeline with different kinds of tests for a Flutter 2.0 application.
Name | Version |
---|---|
Flutter SDK | v2.2.2 (stable) |
Dart SDK | > 2.12.0 |
- Run diagnostics
Verify installed Flutter SDK version
flutter doctor -v
- Clone the project
git clone https://github.com/semaphoreci-demos/semaphore-demo-flutter2
- Install dependencies
flutter packages get
- Run the project
flutter run
- Run the unit & widget tests
flutter test test
- Run the integration tests
For example, adding new item in the list
flutter test integration_test/add_new_todo_item_test.dart
See integration_tests for the list of available integration tests.
The demo includes a working Semaphore CI in the main
branch. Fork this repository and use it to [create your own project][create-project] on Semaphore.
The CI pipeline will look like this:
The example pipeline contains 4 blocks.
- Install and cache Flutter dependencies.
- Run Linting and code analysis tests.
- Run unit and widget tests.
- Run integration tests on an emulator.
Copyright (c) 2021 Rendered Text
Distributed under the MIT License. See the file LICENSE.