https://github.com/xray-app/tutorial-flutter
https://github.com/xray-app/tutorial-flutter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xray-app/tutorial-flutter
- Owner: Xray-App
- Created: 2022-10-13T16:11:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-13T16:56:20.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T15:16:58.537Z (over 1 year ago)
- Language: Dart
- Size: 96.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tutorial flutter
[](https://github.com/Xray-App/tutorial-flutter/actions/workflows/main.yml)
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://gitter.im/Xray-App/community)
## Overview
Code that supports the tutorial [Testing Flutter applications](https://docs.getxray.app/display/XRAYCLOUD/Testing+Flutter+Applications) showcasing the integration between [Xray Test Management](https://www.getxray.app/) on Jira and Flutter.
## Prerequisites
In order to run this tutorial, you need to have Flutter installed (An emulator if you want to target your development to mobile).
## Running
Tests can be run using the Flutter command `test`.
```bash
flutter test
```
To convert Flutter results into a Junit report you will need to use the [JunitReport](https://pub.dev/packages/junitreport) package.
```bash
flutter pub get junitreport
export PATH="$PATH":"$HOME/.pub-cache/bin"
flutter pub global activate junitreport
junitReportFile="./junit-unit-report.xml"
flutter test --machine test/unit_test.dart | tojunit --output $junitReportFile
```
## Submitting results to Jira
Results can be submitted to Jira so that they can be shared with the team and their impacts be easily analysed.
This can be achieved using [Xray Test Management](https://www.getxray.app/) as shown in further detail in this [tutorial](https://docs.getxray.app/display/XRAYCLOUD/Testing+Flutter+Applications).
## Contact
Any questions related with this code, please raise issues in this GitHub project. Feel free to contribute and submit PR's.
For Xray specific questions, please contact [Xray's support team](https://jira.getxray.app/servicedesk/customer/portal/2).
## LICENSE
[BSD 3-Clause](LICENSE)