Token导航 LogoToken导航

Agent Skill · 研究检索

testing-implementation(测试实施)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

testing-implementation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 8,332。

总安装 16,622周安装 653GitHub Stars 公开资料未说明下载 5,296核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:testing-implementation(测试实施)
来源仓库:https://github.com/jpicklyk/task-orchestrator
仓库路径:skills/testing-implementation
安装命令:
npx skills add jpicklyk/task-orchestrator --skill "testing-implementation"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add jpicklyk/task-orchestrator --skill "testing-implementation"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

辅助实现具体的测试用例和脚本。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。支持多种编程语言和测试框架。testing-implementation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。可自动生成基础测试结构和断言。

需确认项目依赖和运行环境配置。避免直接修改未经验证的代码逻辑。

来源仓库内路径:skills/testing-implementation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add jpicklyk/task-orchestrator --skill "testing-implementation";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

testing-implementation 怎么安装?

在终端执行 npx skills add jpicklyk/task-orchestrator --skill "testing-implementation"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

testing-implementation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

testing-implementation 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

testing-implementation 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

testing-implementation 用的人多吗?

公开数据是累计安装 16,622 次,近一周安装 653 次,下载 5,296 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

testing-implementation 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
testing-implementation

测试实施 · 本页

16,622—调用外部服务MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Testing Implementation
description
Comprehensive testing strategies, test automation, quality assurance with JUnit, MockK, Jest. Use for testing, test, qa, quality, coverage tags. Provides test patterns, validation commands, coverage targets.
allowed-tools
Read, Write, Edit, Bash, Grep, Glob

Testing Implementation Skill

Domain-specific guidance for writing comprehensive tests, test automation, and quality assurance.

When To Use This Skill

Load this Skill when task has tags:

  • testing, test, qa, quality, coverage
  • unit-test, integration-test, e2e, jest, junit

Validation Commands

Run Tests

# Gradle (Kotlin/Java)
./gradlew test
./gradlew test --tests "*UserServiceTest*"
./gradlew test --tests "UserServiceTest.shouldCreateUser"

# NPM (JavaScript/TypeScript)
npm test
npm test -- --coverage
npm test -- UserService.test.ts
npm test -- -t "should create user"

# Python
pytest
pytest tests/test_user_service.py
pytest tests/test_user_service.py::test_create_user
pytest --cov=src tests/

Check Coverage

# Gradle
./gradlew test jacocoTestReport
# Report: build/reports/jacoco/test/html/index.html

# NPM
npm test -- --coverage
# Report: coverage/lcov-report/index.html

# Python
pytest --cov=src --cov-report=html tests/
# Report: htmlcov/index.html

Success Criteria (Before Completing Task)

✅ ALL tests MUST pass (0 failures) ✅ Coverage goals met (specified in task, typically 80%+) ✅ No flaky tests (run multiple times to verify) ✅ Test execution time acceptable (< 5min for unit tests) ✅ All edge cases covered

Common Testing Tasks

Unit Tests

  • Test individual functions/methods in isolation
  • Mock external dependencies
  • Focus on business logic
  • Fast execution (milliseconds)

Integration Tests

  • Test components working together
  • Real database (in-memory)
  • Real services
  • Test actual integration points

E2E Tests

  • Test full user workflows
  • Simulated user interactions
  • Real or simulated backend
  • Validates end-to-end functionality

Security Tests

  • SQL injection attempts
  • XSS attacks
  • CSRF protection
  • Authentication/authorization

Performance Tests

  • Response time under load
  • Concurrent request handling
  • Memory usage
  • Query performance

Testing Principles

Test Types and When to Use

Unit Tests (70% of tests):

  • Pure functions with no side effects ✅
  • Business logic calculations ✅
  • Validation logic ✅
  • Data transformations ✅
  • Mock external dependencies

Integration Tests (20% of tests):

  • API endpoints end-to-end ✅
  • Database operations ✅
  • Service layer with repositories ✅
  • Real infrastructure (in-memory DB)

E2E Tests (10% of tests):

  • Critical user workflows ✅
  • Authentication flows ✅
  • Checkout/payment processes ✅
  • Slower, more fragile

Arrange-Act-Assert Pattern

@Test
fun `should calculate total with tax`() {
    // Arrange - Set up test data
    val items = listOf(
        Item(price = 10.0),
        Item(price = 20.0)
    )
    val taxRate = 0.1

    // Act - Execute the function being tested
    val total = calculateTotal(items, taxRate)

    // Assert - Verify the result
    assertEquals(33.0, total)
}

Test Edge Cases

@Test
fun `should handle empty list`() {
    val result = calculateTotal(emptyList(), 0.1)
    assertEquals(0.0, result)
}

@Test
fun `should handle zero tax rate`() {
    val items = listOf(Item(price = 10.0))
    val result = calculateTotal(items, 0.0)
    assertEquals(10.0, result)
}

@Test
fun `should handle negative prices`() {
    val items = listOf(Item(price = -10.0))
    assertThrows<IllegalArgumentException> {
        calculateTotal(items, 0.1)
    }
}

Test Error Conditions

@Test
fun `should throw when user not found`() {
    val nonExistentId = UUID.randomUUID()

    assertThrows<NotFoundException> {
        userService.getUserById(nonExistentId)
    }
}

@Test
fun `should return error response for invalid email`() {
    val response = api.createUser(email = "invalid-email")

    assertEquals(400, response.statusCode)
    assertTrue(response.body.contains("Invalid email"))
}

Common Blocker Scenarios

Blocker 1: Implementation Has Bugs

Issue: Tests fail because code being tested has bugs

What to try:

  • Debug the implementation code
  • Add logging to understand behavior
  • Simplify test to isolate issue
  • Check if bug is in test or implementation

If blocked: Report to orchestrator - implementation needs fixing by Senior Engineer

Blocker 2: Missing Test Infrastructure

Issue: No test database, mock servers, or fixtures available

What to try:

  • Check for existing test setup in codebase
  • Look for test configuration files
  • Check documentation for test setup
  • Use H2 in-memory database for SQLite/PostgreSQL

If blocked: Report to orchestrator - test infrastructure needs provisioning

Blocker 3: Flaky Existing Tests

Issue: Existing tests fail randomly, making new test validation impossible

What to try:

  • Isolate new tests in separate test class
  • Run only new tests: ./gradlew test --tests "NewTestClass"
  • Document flaky test issue

If blocked: Report to orchestrator - flaky tests need fixing first

Blocker 4: Unclear Test Requirements

Issue: Don't know what behavior to test or what's expected

What to try:

  • Review requirements section in task
  • Check acceptance criteria
  • Look at existing similar tests
  • Check API documentation

If blocked: Report to orchestrator - need clarification on expected behavior

Blocker 5: Can't Reproduce Bug

Issue: Bug report unclear, can't write test that reproduces issue

What to try:

  • Follow reproduction steps exactly
  • Check environment differences
  • Add logging to understand actual behavior
  • Test in different configurations

If blocked: Report to orchestrator - need clearer reproduction steps

Blocker Report Format

⚠️ BLOCKED - Requires Senior Engineer

Issue: [Specific problem - implementation bug, missing fixtures, unclear requirements]

Attempted Fixes:
- [What you tried #1]
- [What you tried #2]
- [Why attempts didn't work]

Root Cause (if known): [Your analysis]

Partial Progress: [What tests you DID complete]

Context for Senior Engineer:
- Test output: [Test failures]
- Code being tested: [File and method]
- Test code: [Your test code]

Requires: [What needs to happen]

Test Patterns

Mock External Dependencies (Unit Tests)

@Test
fun `should fetch user from API`() {
    // Arrange - Mock external API
    val mockApi = mockk<UserApi>()
    every { mockApi.getUser(any()) } returns User(id = "123", name = "John")

    val service = UserService(mockApi)

    // Act
    val user = service.getUserById("123")

    // Assert
    assertEquals("John", user.name)
    verify { mockApi.getUser("123") }
}

Use Real Database (Integration Tests)

@SpringBootTest
@Transactional  // Auto-rollback after each test
class UserRepositoryTest {

    @Autowired
    private lateinit var userRepository: UserRepository

    @Test
    fun `should save and retrieve user`() {
        // Arrange
        val user = User(email = " [email protected] ", name = "Test")

        // Act
        val saved = userRepository.save(user)
        val retrieved = userRepository.findById(saved.id)

        // Assert
        assertNotNull(retrieved)
        assertEquals(" [email protected] ", retrieved?.email)
    }
}

Test Async Operations

test('should fetch data asynchronously', async () => {
  // Arrange
  const api = new UserApi();

  // Act
  const user = await api.getUser('123');

  // Assert
  expect(user.name).toBe('John');
});

Test Error Handling

@Test
fun `should handle network error gracefully`() {
    // Arrange - Mock to throw exception
    val mockApi = mockk<UserApi>()
    every { mockApi.getUser(any()) } throws NetworkException("Connection failed")

    val service = UserService(mockApi)

    // Act & Assert
    assertThrows<ServiceException> {
        service.getUserById("123")
    }
}

Coverage Targets

Good Coverage:

  • Business logic: 90%+
  • Service layer: 85%+
  • Controllers/APIs: 80%+
  • Utilities: 90%+

Lower Coverage OK:

  • Configuration classes: 50%
  • DTOs/Entities: 30%
  • Main/startup code: Varies

Focus on:

  • Critical paths (authentication, payment)
  • Complex business logic
  • Edge cases and error handling

What to Test vs What to Skip

✅ DO Test

  • Business logic and calculations
  • API request/response handling
  • Database operations
  • Error handling
  • Edge cases (null, empty, invalid input)
  • Security (injection, XSS, auth)
  • State transitions
  • Conditional logic

❌ DON'T Test

  • Third-party library internals
  • Framework code (Spring, React)
  • Getters/setters with no logic
  • Private methods (test via public interface)
  • Configuration files (unless logic)

Common Patterns to Follow

  1. Arrange-Act-Assert structure
  2. One assertion per test (or closely related assertions)
  3. Descriptive test names (shouldCreateUserWhenValidData)
  4. Independent tests (no shared state between tests)
  5. Fast unit tests (< 1 second each)
  6. Test edge cases (null, empty, boundary values)
  7. Clean up after tests (transactions, file deletion)

What NOT to Do

❌ Don't skip edge case testing ❌ Don't write tests that depend on order ❌ Don't test implementation details ❌ Don't create flaky tests (timing-dependent) ❌ Don't mock everything (use real infrastructure where appropriate) ❌ Don't skip test cleanup (database, files) ❌ Don't mark task complete with failing tests

Focus Areas

When reading task sections, prioritize:

  • requirements - What needs testing
  • testing-strategy - Test approach
  • acceptance-criteria - Success conditions
  • implementation - Code to test

Remember

  • Test edge cases - null, empty, invalid, boundary values
  • Use real infrastructure - in-memory database for integration tests
  • Fast feedback - run tests incrementally during development
  • Clear test names - describe what is being tested
  • Independent tests - no shared state
  • Report blockers promptly - implementation bugs, missing infrastructure
  • Coverage goals matter - aim for 80%+ on business logic
  • Validation is mandatory - ALL tests must pass before completion

Additional Resources

For deeper patterns and examples, see:

  • PATTERNS.md - Advanced testing patterns, mocking strategies (load if needed)
  • BLOCKERS.md - Detailed testing-specific blockers (load if stuck)
  • examples.md - Complete test examples (load if uncertain)

平台分布

windsurf

28.78%
按下载量换算1,524

OpenCode

25.18%
按下载量换算1,334

Codex

19.71%
按下载量换算1,044

Claude Code

12.11%
按下载量换算641

Antigravity

7.1%
按下载量换算376

Gemini CLI

3.44%
按下载量换算182

安全审计

暂无安全审计结果可展示。

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills