flutter_testing

Simple Counter App in Flutter with unit, widget and integration tests

  • A unit test tests a single function, method, or class.
  • A widget test (in other UI frameworks referred to as component test) tests a single widget.
  • An integration test tests a complete app or a large part of an app.

Getting Started

Run unit tests:

flutter test test/unit_test.dart

Run widget tests:

flutter test test/widget_test.dart

Run integration tests:

flutter test integration_test/integration_test.dart

GitHub

Download the full project for this post from the following button

This source is fully free for all time

Download as zip

Comments are closed.

You're Offline!

Top