Commit c950370f authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'docs-add-flutter-test-example' into 'master'

Add flutter test example to docs

See merge request gitlab-org/gitlab!50076
parents 6ad6dbd8 6938f495
...@@ -290,6 +290,22 @@ javascript: ...@@ -290,6 +290,22 @@ javascript:
- junit.xml - junit.xml
``` ```
### Flutter / Dart example
This example `.gitlab-ci.yml` file uses the [JUnit Report](https://pub.dev/packages/junitreport) package to convert the `flutter test` output into JUnit report XML format:
```yaml
test:
stage: test
script:
- flutter test --machine | tojunit -o report.xml
artifacts:
when: always
reports:
junit:
- report.xml
```
## Viewing Unit test reports on GitLab ## Viewing Unit test reports on GitLab
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/24792) in GitLab 12.5 behind a feature flag (`junit_pipeline_view`), disabled by default. > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/24792) in GitLab 12.5 behind a feature flag (`junit_pipeline_view`), disabled by default.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment