{"id":20187608,"url":"https://github.com/bitrise-steplib/bitrise-step-flutter-test","last_synced_at":"2025-04-10T06:43:55.611Z","repository":{"id":38473831,"uuid":"161511997","full_name":"bitrise-steplib/bitrise-step-flutter-test","owner":"bitrise-steplib","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-11T10:34:26.000Z","size":234,"stargazers_count":1,"open_issues_count":1,"forks_count":10,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-21T18:44:43.460Z","etag":null,"topics":["bitrise","bitrise-step","ci","production-code"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitrise-steplib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-12T16:02:51.000Z","updated_at":"2021-10-28T16:22:46.000Z","dependencies_parsed_at":"2024-06-21T17:31:32.847Z","dependency_job_id":"e7b9367d-e2d1-44c9-882a-0f45c5ab3dec","html_url":"https://github.com/bitrise-steplib/bitrise-step-flutter-test","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fbitrise-step-flutter-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fbitrise-step-flutter-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fbitrise-step-flutter-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fbitrise-step-flutter-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitrise-steplib","download_url":"https://codeload.github.com/bitrise-steplib/bitrise-step-flutter-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224558979,"owners_count":17331443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitrise","bitrise-step","ci","production-code"],"created_at":"2024-11-14T03:25:03.430Z","updated_at":"2024-11-14T03:25:04.514Z","avatar_url":"https://github.com/bitrise-steplib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Test\n\n[![Step changelog](https://shields.io/github/v/release/bitrise-steplib/bitrise-step-flutter-test?include_prereleases\u0026label=changelog\u0026color=blueviolet)](https://github.com/bitrise-steplib/bitrise-step-flutter-test/releases)\n\nPerforms any test in a Flutter project.\n\n\u003cdetails\u003e\n\u003csummary\u003eDescription\u003c/summary\u003e\n\n\nIf you have tests in your repository, and selected `yes` when prompted during app creation, the primary Workflow will include the **Flutter Test** Step by default. \nIf you add tests to your app later, add the **Flutter Test** Step to your Workflow manually. The Step runs the `flutter test` command with the specified flags. To check the available flags, open a command line interface on your own machine and run `flutter test --help`.\n\n### Configuring the Step\n1. Provide your project's root directory in the **Project Location** field.\n2. The **Step's test result directory** is the root directory for all test results created by the Bitrise CLI. This input gets filled out automatically.\n3. You can append additional flags to the default `flutter test` command in the **Additional parameters** field.\n4. Select 'yes' in the **Generate code coverage files** input to get detailed analysis of your code.\n\n\n### Troubleshooting\nMake sure the **Project Location** input of the Flutter Test Step is correct. \nThe default value is the Environment Variable (Env Var) created for your Flutter project’s location.\n\n\n### Useful links\n- [Getting started with Flutter](https://devcenter.bitrise.io/getting-started/getting-started-with-flutter-apps/)\n- [About testing](https://devcenter.bitrise.io/testing/testing-index/)\n\n### Related Steps\n- [Flutter Build](https://www.bitrise.io/integrations/steps/flutter-build)\n- [Flutter Analyze](https://www.bitrise.io/integrations/steps/flutter-analyze)\n\u003c/details\u003e\n\n## 🧩 Get started\n\nAdd this step directly to your workflow in the [Bitrise Workflow Editor](https://devcenter.bitrise.io/steps-and-workflows/steps-and-workflows-index/).\n\nYou can also run this step directly with [Bitrise CLI](https://github.com/bitrise-io/bitrise).\n\n## ⚙️ Configuration\n\n\u003cdetails\u003e\n\u003csummary\u003eInputs\u003c/summary\u003e\n\n| Key | Description | Flags | Default |\n| --- | --- | --- | --- |\n| `project_location` | The root dir of your Flutter project. | required | `$BITRISE_SOURCE_DIR` |\n| `bitrise_test_result_dir` | Root directory for all test results created by the Bitrise CLI | required | `$BITRISE_TEST_RESULT_DIR` |\n| `generate_code_coverage_files` | In case of `generate_code_coverage_files: \"yes\"` `flutter test` gets `--coverage` passed | required | `false` |\n| `additional_params` | The flags from this input field are appended to the `flutter test` command. |  |  |\n| `tests_path_pattern` | The pattern from this input field is expanded and fed to the `flutter test` command.   Both * and ** glob patterns are supported. For example, `lib/**/*_test.dart`. |  |  |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eOutputs\u003c/summary\u003e\n\n| Environment Variable | Description |\n| --- | --- |\n| `BITRISE_FLUTTER_COVERAGE_PATH` | The path of the generated code coverage `lcov.info` file. |\n| `BITRISE_FLUTTER_TESTRESULT_PATH` | The path of the json file that was generated by the `flutter test` command. |\n\u003c/details\u003e\n\n## 🙋 Contributing\n\nWe welcome [pull requests](https://github.com/bitrise-steplib/bitrise-step-flutter-test/pulls) and [issues](https://github.com/bitrise-steplib/bitrise-step-flutter-test/issues) against this repository.\n\nFor pull requests, work on your changes in a forked repository and use the Bitrise CLI to [run step tests locally](https://devcenter.bitrise.io/bitrise-cli/run-your-first-build/).\n\nLearn more about developing steps:\n\n- [Create your own step](https://devcenter.bitrise.io/contributors/create-your-own-step/)\n- [Testing your Step](https://devcenter.bitrise.io/contributors/testing-and-versioning-your-steps/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrise-steplib%2Fbitrise-step-flutter-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitrise-steplib%2Fbitrise-step-flutter-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrise-steplib%2Fbitrise-step-flutter-test/lists"}