Note: If you don't see "New Flutter Project" as an option in your IDE, make sure that you have the plugins installed for Flutter and Dart. You'll be modifying this starter app to create the finished app. Name the project testing_app (instead of myapp). The rest of the codelab then focuses on learning different kinds of testing.Ĭreate a simple templated Flutter app, using the instructions in Getting Started with your first Flutter app. You will quickly create the app to be tested using source files that you copy and paste. This codelab focuses on testing a Flutter mobile app. (Requires setup in Android Studio.)Ĭreate a new Flutter app & update dependencies
You need two pieces of software to complete this lab: the Flutter SDK, and an editor. I'm looking for an explanation of something specific. I'm looking for an example code to use in my project. I know something about this topic, but I want a refresher. What would you like to learn from this codelab? I'm new to the topic, and I want a good overview. UI and performance tests for the entire app using integration tests.Widgets tests for the home and favorites pages.Unit tests to validate the add and remove operations.Once the app is complete, you will write the following tests:
The app supports the following operations:
We provide the source code for you so you can get right to the testing. In this codelab, you'll start by building a simple application with a list of items.
FLUTTER INSTALL DART HOW TO
How to test data classes (providers) with the help of unit tests.How to create an integration test to test the app's UI and performance using the integration_test library.How to create widget tests using the widget testing framework.The app will use the Provider package for managing state. In this codelab, you'll build and test a simple Flutter app. Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.