Skip to content

feat: add support for test command #279

@felangel

Description

@felangel

As a developer, I want to be able to easily run tests and collect coverage for my projects so that I can identify failing tests and gaps in code coverage.

# run tests for current project (flutter/dart)
very_good test

# run tests recursively
very_good test --recursive

# run tests for specific project
very_good test ./path/to/my/project

# run tests with coverage generates coverage report at coverage/lcov.info
very_good test --coverage

# run tests with coverage generates coverage report at custom/path/lcov.info
very_good test --coverage --coverage-path ./custom/path

# run tests with coverage and exclude files from coverage
very_good test --coverage --coverage-exclude "*.g.dart"

# run tests with coverage and exit(1) if coverage is below min coverage threshold
very_good test --coverage --min-coverage 100

# run tests with coverage and output coverage results as html report
very_good test --coverage --report html

# run tests with coverage and output coverage results as json output
very_good test --coverage --report json

# run tests without running "pub get" first
very_good test --no-pub

# run tests in a random order
very_good test --test-randomize-ordering-seed random

Metadata

Metadata

Labels

featureA new feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions