Skip to content

Conversation

@nilsreichardt
Copy link
Contributor

Description

Migrates the Flutter Driver tests to Flutter Integration tests. I just copied the Flutter Driver. So have not changed any test.

Related Issues

Part of #6829

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.

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

// ignore: unnecessary_lambdas
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line will be remove when I migrated a second package.

@@ -0,0 +1,81 @@
// Copyright 2019, the Chromium project authors. Please see the AUTHORS file
Copy link
Contributor Author

@nilsreichardt nilsreichardt Jun 19, 2022

Choose a reason for hiding this comment

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

A difference to the Flutter Driver tests is that I called the file firebase_core_e2e_test.dart instead of firebase_core_e2e.dart.

This has the advantage that IDEs detects that this is a test file. Therefore, you are able to easily start and debug the tests via the IDE.

image

import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:tests/firebase_options.dart';
Copy link
Contributor Author

@nilsreichardt nilsreichardt Jun 19, 2022

Choose a reason for hiding this comment

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

Another difference to the Flutter Drivers tests is that I'm using the firebase_options.dart file from the lib instead of copying it again in the integration_test folder (like it has been done in the test_driver folder).

@nilsreichardt nilsreichardt changed the title test(firebase_core): migrate integration_test package test(firebase_core): migrate to integration_test package Jun 20, 2022
@Lyokone Lyokone merged commit e453303 into firebase:migrate-to-integration-tests Jun 23, 2022
@firebase firebase locked and limited conversation to collaborators Jul 24, 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