Skip to content

Run Tests Job

Run your Flutter test suite with flutter test.

OptionDescriptionDefault
Test PathDirectory or filetest/
CoverageGenerate coverage reportfalse
Terminal window
flutter test
# or with coverage
flutter test --coverage
  • Pipeline fails if any tests fail
  • Test results are reported in the build logs
  • Coverage reports uploaded as artifacts (if enabled)
┌──────────┐ ┌───────────┐ ┌───────┐
│ On Push │────▶│ Run Tests │────▶│ Build │
└──────────┘ └───────────┘ └───────┘

Place tests early in your pipeline to fail fast.