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 @Test functions and @TestCase methods within classes.
  • Assertions: Offers a rich set of assertion macros like @Assert, @Expect, @AssertThrows, and @PowerAssert for various validation needs.
  • Mocking & Verification: Includes a powerful mocking framework with @On for stubbing and Verify for 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.