https://github.com/mmcc007/default_flutter_app
The default flutter app with separate testable flutter app running on Travis and Cirrus
https://github.com/mmcc007/default_flutter_app
Last synced: 3 months ago
JSON representation
The default flutter app with separate testable flutter app running on Travis and Cirrus
- Host: GitHub
- URL: https://github.com/mmcc007/default_flutter_app
- Owner: mmcc007
- License: mit
- Created: 2019-06-06T22:33:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T08:12:37.000Z (almost 6 years ago)
- Last Synced: 2024-10-19T03:02:25.744Z (12 months ago)
- Language: Dart
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://cirrus-ci.com/github/mmcc007/default_flutter_app)
[](https://travis-ci.com/mmcc007/default_flutter_app)# default_flutter_app
This app was created using
```
flutter create --with-driver-test --org com.mycompany.myflutterapp default_flutter_app
```
This created a testable flutter app that is runnable and testable. In practice, a separate deliverable flutter app and a testable flutter app is required. So the app was separated into a testable and a non-testable flutter app by this [commit](https://github.com/mmcc007/default_flutter_app/commit/1e72d1fea47999a26ccf90fdbc0ac9d4e6c0374c).## Running and testing on a real device
To run the app as a non-testable app, make sure you have a device attached and run:
```
flutter run
or
flutter --verbose run
```
To test the testable app, make sure you have a device attached and run:
```
flutter driver test_driver/main.dart
or
flutter --verbose driver test_driver/main.dart
```
Note: for simplicity, testing in this context refers only to integration testing. It is still possible to run unit and widget tests on the 'non-testable' app.## iOS Deliverables
If an iOS device is attached, both flutter calls above create a `.app` file which is uploaded by flutter tooling to the device. The `.app` is signed using the developer certificate from the developer's Apple Developer Account. If the developer certificate is not present, it can be downloaded from Xcode by following the 'Automatic Signing' procedure.Delivering the app to the app store or to another iOS device generally requires creating a `.ipa` and is beyond the scope of this document.