cangjie-unittest
Community仓颉语言单元测试
AuthorSunriseSummer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive framework for writing and running unit tests for Cangjie language code, ensuring code quality and reliability.
Core Features & Use Cases
- Test Definition: Supports defining tests using
@Testfunctions and@TestCasemethods within classes. - Assertions: Offers a rich set of assertion macros like
@Assert,@Expect,@AssertThrows, and@PowerAssertfor various validation needs. - Mocking & Verification: Includes a powerful mocking framework with
@Onfor stubbing andVerifyfor checking interactions. - Use Case: Developers can use this Skill to write tests for their Cangjie functions, classes, and modules, verifying expected behavior and catching regressions early in the development cycle.
Quick Start
Use cjpm test to run all unit tests in your Cangjie project.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cangjie-unittest Download link: https://github.com/SunriseSummer/CangjieDocValidator/archive/main.zip#cangjie-unittest Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.