Patrol

Patrol promotional graphics

Patrol is a powerful, open-source UI testing framework designed specifically for Flutter apps and released in September 2022. Developed and maintained by LeanCode, one of the world’s leading Flutter development consultancies, Patrol builds upon Flutter's core testing tools to enable developers to do things that were previously impossible.

Why choose Patrol?

Native Access, Redefined

Unlock native platform features right within your Flutter tests. With Patrol, you can:

  • Interact with permission dialogs, notifications, and WebViews.
  • Modify device settings, toggle Wi-Fi, and more.
  • Achieve all this effortlessly using plain Dart code.

Intuitive Test Writing

Say goodbye to complexity with Patrol’s custom finder system.

  • Streamline your test code with a shorter, more readable, new custom finder system.
  • Enjoy the speed and convenience of Hot Restart, which makes integration testing faster, easier, and more fun.
  • Quickly inspect the currently visible Android/iOS views and discover their properties with the Patrol DevTools extension.

Production-Ready Integration Testing

Patrol revolutionizes Flutter’s built-in integration_test plugin:

  • Overcomes its limitations with full test isolation between tests and sharding.
  • Delivers a robust, production-grade solution for your app testing needs.
  • Offers console logs to get real-time insights during test execution.

Compatible with Device Farms

With Patrol's native-like testing capabilities, you can use popular device farms like:

  • Firebase Test Lab
  • BrowserStack
  • LambdaTest
  • Marathon
  • emulator.wtf
  • AWS Device Farm

Trusted by LeanCode and the Flutter Community

Patrol is a fully open-source project, and we're proud to share it with the amazing Flutter community. Patrol isn’t just a tool; it’s a commitment to quality. At LeanCode, we use Patrol to test production-grade apps for clients across industries, and now, you can do the same!

Need expert help? LeanCode offers end-to-end automated UI testing services tailored for your Flutter apps – check them out:

Automated UI testing services

More about Patrol