cangjie-cjcov

Generate HTML, XML, and JSON code coverage reports for Cangjie programs.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-cjcov-zhenzhizhi12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-cjcov
Source: https://github.com/zhenzhizhi12/NexusAgent/tree/main/.opencode/skills/common-skill-l1/cjcov
Command: npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-cjcov-zhenzhizhi12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers understand the code coverage of their Cangjie programs, identifying which lines and branches of code are executed during testing.

Core Features & Use Cases

  • Code Coverage Reports: Generates detailed reports in HTML, XML, and JSON formats.
  • Branch Coverage: Supports experimental branch coverage analysis.
  • Filtering: Allows inclusion and exclusion of specific files or directories.
  • Use Case: After compiling your Cangjie project with coverage enabled, use this Skill to generate an HTML report that visually highlights untested code sections, guiding your refactoring and testing efforts.

Quick Start

Generate a detailed HTML coverage report for your Cangjie project.

Frequently Asked Questions about cangjie-cjcov

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Cangjie code coverage report?

To generate a Cangjie code coverage report, compile your project with the --coverage flag, execute the tests to produce .gcda data, and use this Skill to parse the data into an HTML, XML, or JSON report.

What is branch coverage and does Cangjie support it?

Branch coverage identifies which conditional code paths are executed during testing. Cangjie supports experimental branch coverage analysis alongside standard line coverage to help evaluate test suite effectiveness.

How do I exclude specific files from a Cangjie coverage report?

You can exclude specific files or directories from a Cangjie coverage report by applying inclusion and exclusion filters provided by the cjcov tool, ensuring the final report focuses only on relevant code sections.

What output formats are available for Cangjie code coverage reports?

Cangjie code coverage reports can be generated in HTML, XML, and JSON formats. The HTML format visually highlights untested code sections, while XML and JSON facilitate automated code quality assessment.

Why is my Cangjie coverage report not working?

Cangjie coverage report generation fails if the project is not compiled with the --coverage flag or if tests are not executed to produce the required .gcda data files before running the cjcov tool.

Do I need the --coverage flag to measure Cangjie code coverage?

Yes, the --coverage flag is required during compilation. It instruments the Cangjie program to generate the .gcda data necessary for the cjcov tool to calculate line and branch coverage metrics.