dlcov 3.0.1 dlcov: ^3.0.1 copied to clipboard
A CLI to add code coverage threshold (CI/CD, git hooks, etc.)
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dlcov
Use it
The package has the following executables:
$ dlcov
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dlcov
With Flutter:
$ flutter pub add dlcov
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dlcov: ^3.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dlcov/core/app_constants.dart';
import 'package:dlcov/entities/config.dart';
import 'package:dlcov/entities/coverage.dart';
import 'package:dlcov/entities/lcov.dart';
import 'package:dlcov/models/config_model.dart';
import 'package:dlcov/repositories/config_repository.dart';
import 'package:dlcov/repositories/record_repository.dart';
import 'package:dlcov/usecases/create_file_references.dart';
import 'package:dlcov/usecases/get_config.dart';
import 'package:dlcov/usecases/get_lcov.dart';
import 'package:dlcov/usecases/get_records.dart';
import 'package:dlcov/usecases/parse_arguments.dart';
import 'package:dlcov/usecases/verify_coverage.dart';
import 'package:dlcov/utils/commands/commands.dart';
import 'package:dlcov/utils/file_system/file_system_util.dart';
import 'package:dlcov/utils/logger.dart';