Testing plugins

Types of plugin tests

Running tests

Dart unit tests
Integration tests
Native unit tests

What types of tests to add

All of the usual types of Flutter tests apply to
plugin packages as well, but because plugins contain
native code they often also require other kinds of tests
to test all of their functionality.

Note:
  To learn how to test your plugin code, read on.
  To learn how to avoid crashes from a plugin when
  testing your Flutter app, check out
  Plugins in Flutter tests.

Types of plugin tests

To see examples of each of these types of tests, you can
create a new plugin from the plugin template
and look in the indicated directories.