I’m setting up integration tests in a Flutter project and noticed an inconsistency between the official documentation and the current state of the packages.

The official Flutter documentation still recommends using the integration_test package:
https://docs.flutter.dev/testing/integration-tests

However, when checking the package on pub.dev:
https://pub.dev/packages/integration_test

I noticed that:

  • It hasn’t received updates for more than 4 years

  • It is marked as discontinued

  • It shows incompatibility warnings with Dart 3

  • I’m not sure which parts are no longer working

Given this situation, what is the correct and up-to-date approach to write and run integration tests in Flutter?
Is there any alternative package officially recommended by the Flutter team or widely adopted by the community?
Or has the integration testing approach changed and moved to another tool or structure?

I’m looking for up-to-date guidance on what should be used in 2025 for integration testing in Flutter.

1 Reply 1

Yes — the pub.dev package integration_test is discontinued, but the integration test framework itself is not.
The reason it looks abandoned is that the entire package was moved into the Flutter SDK, so the standalone pub.dev version is no longer maintained. So use the integration_test library that ships with the flutter sdk.

For Explanation,

Historically, integration_test was a separate package.
Around Flutter 3.0, the Flutter team moved it directly into the SDK so it:

  • stays in sync with engine changes

  • doesn’t depend on users updating a pub package

  • avoids version mismatches

  • becomes easier to maintain internally

Source:

https://github.com/flutter/flutter/blob/main/packages/integration_test/CHANGELOG.md

https://docs.flutter.dev/cookbook/testing/integration/introduction

https://chromium.googlesource.com/external/github.com/flutter/packages/%2B/HEAD/packages/integration_test/README.md?utm_source=chatgpt.com

https://docs.flutter.dev/release/breaking-changes/flutter-driver-migration?utm_source=chatgpt.com

Your Reply

By clicking “Post Your Reply”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.