If you built the example app in release mode rather
than debug, replace “Debug” with “Release”.

What types of tests to add

The general advice for testing Flutter projects
applies to plugins as well.
Some extra considerations for plugin testing:

Since only integration tests can test the communication
between Dart and the native languages,
try to have at least one integration test of each
platform channel call.

If some flows can’t be tested using integration
tests—for example if they require interacting with
native UI or mocking device state—consider writing
“end to end” tests of the two halves using unit tests:

    
      
        Native unit tests that set up the necessary mocks,
then call into the method channel entry point
with a synthesized call and validate the method response.
      
      
        Dart unit tests that mock the platform channel,
then call the plugin’s public API and validate the results.