Skip to main content

Flutter Test

This component allows you to run Flutter Unit Tests. Please note that it requires the Flutter SDK.

Prerequisites

Prerequisite Workflow StepDescription
Git CloneThis step will clone your project through the connected Git provider and create the $AC_REPOSITORY_DIR variable.
Flutter InstallThis step will install the Flutter SDK release. If the version is not specified, it will install the latest stable version.
danger

This step is particularly dependent on the Flutter Install step. If the Flutter SDK is not installed, the step will give an error that the required command was not found.

Input Variables

You can find all the parameters required for this step in the table below, with their descriptions in detail.

Variable NameDescriptionStatus
$AC_FLUTTER_PROJECT_DIRThis parameter is used as the repository path. This path is created immediately after the Git Clone step. If the Git Clone step is not used, this path cannot be found.Required
$AC_FLUTTER_JUNIT_REPORTSIf this is set to YES, JUnit test report will be created at the AC_TEST_RESULT_PATH.Optional
$AC_FLUTTER_TEST_EXTRA_ARGSYou can use this parameter if you want to add an extra parameter to the build command line.Optional

Output Variables

Variable NameDescription
$AC_TEST_RESULT_PATHThis path is created after the test results are reported. If you are using the Export Build Artifact step, it can be accessed directly from Download Artifacts.

To access the source code of this component, please use the following link:

Preview of GitHub - appcircleio/appcircle-flutter-test-component