AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Testing Patterns

skill-misonl-ling-testing-patterns · by MisonL

测试模式与原则。覆盖 Unit(单元测试)、Integration(集成测试)与 Mock(模拟)策略。

— No reviews yet
0 installs
39 views
0.0% view→install

Install

$ agentstack add skill-misonl-ling-testing-patterns

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-misonl-ling-testing-patterns)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
○ 6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Testing Patterns? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

测试模式

> 构建可靠测试体系的原则。


1. 测试金字塔

        /\          E2E(端到端,少量)
       /  \         关键流程
      /----\
     /      \       Integration(集成测试,中量)
    /--------\      API、数据库查询
   /          \
  /------------\    Unit(单元测试,大量)
                    函数、类等基础逻辑

2. AAA 模式

| 步骤 | 目的 | |------|------| | Arrange(准备) | 准备测试数据与上下文 | | Act(执行) | 执行被测代码 | | Assert(断言) | 断言结果是否符合预期 |


3. 测试类型选择

各类型使用时机

| 类型 | 适用场景 | 速度 | |------|----------|------| | Unit(单元测试) | 纯函数、核心逻辑 | 快( 牢记: 测试本身就是文档。如果别人无法通过测试理解代码行为,就应该重写测试。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

  • Author: MisonL
  • Source: MisonL/Ling
  • License: MIT
  • Homepage: https://www.npmjs.com/package/@mison/ling

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.