Performance profiling

Mock dependencies using Mockito

An introduction to unit testing

Cookbook

Testing

Unit

Introduction

1. Add the test dependency

2. Create a test file

3. Create a class to test

4. Write a test for our class

5. Combine multiple tests in a group

6. Run the tests

Run tests using IntelliJ or VSCode
Run tests in a terminal

How can you ensure that your app continues to work as you
add more features or change existing functionality?
By writing tests.

Unit tests are handy for verifying the behavior of a single function,
method, or class. The test package provides the
core framework for writing unit tests, and the flutter_test
package provides additional utilities for testing widgets.