Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Flutter pull request verification

gabcoelho edited this page Jan 7, 2021 · 1 revision

This process is responsible for the pull request verification for Flutter platform.

You can see this more detailed in a lane called pull_request_verification from flutter plataform in the Fastfile.

Fastlane

This lane will be executed when our workflow flutter-pr is triggered. It has the following steps:

Overview

Step by step

6. Run tests

Uses a script to run tests. The script runs unit and widget tests in a function called runTests and runs dart test in a function called runDartTestsWithCoverage.

7. Generate test coverage reports

Uses a script to generate test coverage report in a function called runReport.

8. Upload tests report

Execute run_codecov fastlane lane.

This lane uses fastlane-plugin-codecov_reporter plugin to send code coverage informations to Codecov.io

9. Static code analysis

Perform static code analysis using lint to dart files using flutter analyze command line interface.