cover 0.8.0 copy "cover: ^0.8.0" to clipboard
cover: ^0.8.0 copied to clipboard

A simple and efficient tool for comprehensive code coverage analysis.

0.8.0 #

  • Feat: Added --github-annotations (abbr: -g) flag to the check command to generate GitHub Actions warnings for uncovered lines.

0.7.1 #

  • Perf: Optimized Markdown and JSON reporting for large datasets by batching console writes and caching calculations.
  • Chore: Added GitHub Actions workflows for automated version tagging, GitHub Release creation, and pub.dev publication.

0.7.0 #

  • Feat: Native support for Dart VM coverage JSON files (.json) generated by dart test --coverage.
  • Feat: Seamless multi-file merging when pointing --path to a directory (applies to both .json and .info files).
  • Feat: Automatic URI-to-path resolution for package: and file:// sources in JSON coverage reports using dynamic pubspec.yaml package name matching.
  • Feat: Added --failures-only (abbr: -f) flag to the check command to filter the report to show only files failing the coverage threshold.
  • Feat: Added --markdown flag to the check command to generate emoji-rich, markdown-formatted reports suitable for PR comments.
  • Feat: Threshold-aware coloring in terminal reports, dynamically adjusting colors based on the user-provided --min-coverage.
  • Refactor: Enhanced CLI resilience and stability with improved input validation and graceful error handling.
  • Perf: Optimized character scanning in output sanitization with a fast-path for printable ASCII characters.

0.6.0 #

  • Feat: Added --baseline (or -b) flag to check command for coverage regression detection against a reference LCOV file.
  • Fix: Enhanced CoverCommandRunner and CheckCoverageCommand with robust JSON error reporting for usage and formatting errors.
  • Perf: Optimized RecordExtension with manual loops and StringBuffer for faster uncovered lines extraction and range formatting.
  • Perf: Optimized CI/CD performance by implementing parallel jobs and dependency caching.
  • Chore: Updated Melos scripts for better workspace consistency and fail-fast behavior.

0.5.2 #

  • Docs: Corrected README.md to English and improved features documentation.

0.5.1 #

  • Docs: Comprehensive overhaul of README.md with better features documentation, CLI flags table, and programmatic usage examples.

0.5.0 #

  • Feat: Added automated Release Manager workflow for AI agents.
  • Fix: Implemented terminal output sanitization via StringExtension.sanitize() to prevent ANSI injection attacks.
  • Fix: Restored 100% test coverage for CLI error paths and runner exceptions.
  • Chore: Improved repository hygiene by properly excluding IDE-specific artifacts in .gitignore.
  • Perf: Optimized Melos scripts for parallel execution and increased test concurrency.

0.4.0 #

  • Feat: Added --show-uncovered flag to display missing coverage line numbers.
  • Feat: Added --exclude-generated flag to check command to ignore common generated files (e.g., .g.dart, .freezed.dart, .mocks.dart).
  • Feat: Added --json (abbr -j) flag to check command for machine-readable coverage output.
  • Feat: Added automated Pull Request reviewer workflow for AI agents.
  • Perf: Pre-compiled generated files regex for faster parsing.
  • Perf: Deferred table allocation in check coverage command.
  • Perf: Optimized coverage aggregation with indexed loop.
  • Perf: Optimized Record extension toRow with fast-path for 100% coverage.
  • Refactor: Consolidated agent guidelines and removed legacy AGENTS.md.
  • Fix: Enhanced CheckCoverageCommand with robust error handling and structured JSON error reporting for failure scenarios.
  • Refactor: Optimized CoverCommandRunner.getVersion using non-blocking I/O to prevent event loop blockage and TOCTOU.

0.3.0 #

  • Feat: Integrated Melos as a workspace manager using Dart Workspaces.
  • Refactor: Optimized CoverageService with non-blocking/async I/O for file operations and path resolution.
  • Fix: Improved robustness of min-coverage validation and enhanced global error handling in CLI commands.
  • Perf: Optimized file metadata retrieval and path exclusion filtering.
  • Fix: Resolved exception leakage issues during coverage parsing.
  • Chore: Upgraded minimum Dart SDK to 3.5.0 and unified development workflows via Melos scripts.

0.2.0 #

  • Security improvements:
    • Fixed path traversal via symlinks.
    • Added output sanitization to prevent potential vulnerabilities.
    • Fixed TOCTOU vulnerability in CoverageService.
    • Protected against ReDoS in excluded paths.
    • Fixed version spoofing vulnerability.
  • Optimizations:
    • Optimized coverage calculation and formatting.
    • Improved excluded paths filtering and coverage file filtering.
    • Optimized regex usage in RecordExtension.
    • Optimized filename sanitization in coverage reports.
  • Bug fixes:
    • Fixed path exclusion logic to support spaces.
    • Enforced file path constraints.
    • Fixed exception leakage in CLI Runner.
  • Documentation:
    • Added AGENTS.md guide for AI agents and developers.

0.1.0 #

  • Refactored architecture to introduce CoverageService for better testability and programatic usage.
  • Added CheckCoverageCommand support for programatic usage.
  • Upgraded dependencies to support latest Dart versions.
  • Added full example package in example/.
  • Updated development dependencies.

0.0.4 #

  • Flag --excluded-paths was added in order to exclude folders/files from coverage

0.0.3 #

  • Fixed an issue with the final coverage percentage calculation

0.0.2 #

  • Flag --version was added in order to show the current version
  • Flag --display-files was added in order to show/hide coverage files

0.0.1 #

  • Initial version.
2
likes
160
points
452
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple and efficient tool for comprehensive code coverage analysis.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

args, cli_completion, dart_console, lcov_parser, path, pubspec_parse

More

Packages that depend on cover