dart-collect-coverage 是做什麼的?
使用 coverage 套件收集覆蓋率並建立 LCOV 報告
使用 coverage 套件收集覆蓋率並建立 LCOV 報告
這個技能旨在幫助開發者使用 Dart 的 coverage 套件來收集程式碼覆蓋率數據,並生成標準的 LCOV 格式報告。對於使用 Dart 或 Flutter 的專案,這是一個必備的工具,能夠整合到 CI/CD 流程中,確保程式碼測試涵蓋足夠的範圍。它支援透過命令列執行,與 Dart 生態系統緊密結合,並且能夠無縫配合其他覆蓋率視覺化或門檻檢查工具。使用方式很簡單:執行技能後,它會自動調用 coverage 套件收集數據,然後輸出一個 LCOV 文件,方便後續的分析與報告。
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-collect-coverageInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
使用 coverage 套件收集覆蓋率並建立 LCOV 報告
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Use switch expressions and pattern matching where appropriate
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.