2

I have a flutter app that uses flutter_local_notifications package to show notifications.

Is it possible to have integration_test in form of end-to-end tests like this:

  • notification is scheduled (e.g. 10 seconds in future), app is closed, notification is shown, clicked, and app opens with desired result

  • notification is scheduled (e.g. 10 seconds in future), app is kept open, notification is shown, clicked, and app opens with desired result

  • etc.

Maciej Pszczolinski
  • 1,623
  • 1
  • 19
  • 38

1 Answers1

1

See the Patrol framework – it lets you easily test many native features, like notifications!

Here's an example integration test testing notifications.

It has extensive documentation and is actively maintained.

Disclaimer: I'm Patrol's lead dev.

Roflo
  • 235
  • 1
  • 9
  • 27
Bartek Pacia
  • 1,085
  • 3
  • 15
  • 37