Skip to content

Using test tags in FlutterΒΆ

Ever wanted to filter tests so you only run the ones you need to?

This can be easily done using test tags.

Super useful when you have dozens/hundreds of tests and you want to target specific ones from the command line. πŸ‘‡


There are configuration options to tag:

  • an entire test suite (with the @Tags annotation)
  • a test group or an individual test (with the tags argument)

More info on the test package documentation: https://pub.dev/packages/testtagging-tests

For more tips like these, just follow me: @biz84 πŸ™‚

Previous Next
Singletons in Flutter: Drawbacks Flutter Riverpod: How to Register a Listener during App Startup

Last update: 18 septembre 2023
Created: 18 septembre 2023