Integration tests are written using the integration_test package, provided
by the SDK.

In this recipe, learn how to test a counter app. It demonstrates
how to setup integration tests, how to verify specific text is displayed
by the app, how to tap specific widgets, and how to run integration tests.

This recipe uses the following steps:

Create an app to test.

Add the integration_test dependency.

Create the test files.

Write the integration test.

Run the integration test.

1. Create an app to test

First, create an app for testing. In this example,
test the counter app produced by the flutter create
command. This app allows a user to tap on a button
to increase a counter.

2. Add the integration_test dependency