Flutter Test
This component allows you to run Flutter Unit Tests. Please note that it requires the Flutter SDK.
Prerequisites
Prerequisite Workflow Step | Description |
---|---|
Git Clone | This step will clone your project through the connected Git provider and create the $AC_REPOSITORY_DIR variable. |
Flutter Install | This 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 Name | Description | Status |
---|---|---|
$AC_FLUTTER_PROJECT_DIR | This 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_REPORTS | If this is set to YES , JUnit test report will be created at the AC_TEST_RESULT_PATH . | Optional |
$AC_FLUTTER_TEST_EXTRA_ARGS | You can use this parameter if you want to add an extra parameter to the build command line. | Optional |
Output Variables
Variable Name | Description |
---|---|
$AC_TEST_RESULT_PATH | This 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:
GitHub - appcircleio/appcircle-flutter-test-componentContribute to appcircleio/appcircle-flutter-test-component development by creating an account on GitHub.github.com