Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): add --no-pub to integration tests #637

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ test functionality with real Amplify backends. The integration test script will
apps which have integration tests written (skipping those that don't). It runs on Android and iOS simulators.

**Note:** To run integration tests, you will need prerequisite Amplify resources in the example
apps where the tests run. The process for creating those is noted below.
apps where the tests run. The process for creating those is noted below. You will also need to install dependencies with `melos bootstrap`.

To run all integration tests on available platforms:
```bash
Expand Down
4 changes: 2 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ scripts:
- Requires running Android and iOS simulators.

test:integration:android:
run: melos exec "flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart -d sdk"
run: melos exec "flutter drive --no-pub --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart -d sdk"
select-package:
file-exists:
- integration_test/main_test.dart
scope: "*example*"

test:integration:ios:
run: melos exec "flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart -d iPhone"
run: melos exec "flutter drive --no-pub --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart -d iPhone"
select-package:
file-exists:
- integration_test/main_test.dart
Expand Down