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/test#tagging-tests
For more tips like these, just follow me: @biz84 馃檪
Found this useful? Show some love and share the original tweet 馃檹
Previous | Next |
---|---|
Singletons in Flutter: Drawbacks | Flutter Riverpod: How to Register a Listener during App Startup |