Skip to content

Conversation

@nilsreichardt
Copy link
Contributor

@nilsreichardt nilsreichardt commented Jun 14, 2022

Description

This will be the scaffold for #8909. It's the first PR for migrating the tests to the integration_test package. The other PRs for migrating the packages will follow in the next weeks.

Related Issues

Part of #8909

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to use multiDex to fix the flutter test command. Is this a problem that I'm adding multiDex?

Output of the exception (without multiDex): https://github.com/nilsreichardt/flutterfire/runs/6877416338?check_suite_focus=true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think multidex is automatically added with minSdkVersion 21, do we want to keep the 19 version? The Android repartition is really low for this SDK 🤔

Copy link
Member

@Salakar Salakar Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for bumping minSdkVersion to 21 on test apps, multidex <21 has caused headaches for me before on other CI things (though this was a while back and on RNFirebase)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping the minSdkVersion to 21 in 622cd46

@nilsreichardt nilsreichardt marked this pull request as ready for review June 14, 2022 20:48
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think multidex is automatically added with minSdkVersion 21, do we want to keep the 19 version? The Android repartition is really low for this SDK 🤔

@Lyokone Lyokone merged commit fa1a865 into firebase:migrate-to-integration-tests Jun 15, 2022
nilsreichardt added a commit to nilsreichardt/flutterfire that referenced this pull request Jun 16, 2022
…ase#8910)

* Add `integration_test.dart`

* Add dummy `e2e_test.dart` file

* Add `integration_test` package

* Run integration tests for every pull request

* Use `IntegrationTestWidgetsFlutterBinding.ensureInitialized();`

* Format & use `flutter test`

* Use multidex

* Add new line for `FlutterMultiDexApplication.java`

* Format to pass CI

* Add comment for `flutter drive` command

* Use `flutter test` command for macos test

* Format test command for android

* Use one line comment

* Re-trigger CI

* Re-trigger CI

* Bump `minSdkVersion` to 21 for tests app
@nilsreichardt nilsreichardt deleted the use-integration-test-commands branch June 19, 2022 13:16
@firebase firebase locked and limited conversation to collaborators Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants