skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
full-stack-skills/testing-skills72 installs

junit

Provides comprehensive guidance for JUnit testing framework including test annotations, assertions, test lifecycle, and best practices. Use when the user asks about JUnit, needs to write Java unit tests, use JUnit annotations, or configure JUnit for Java projects.

How do I install this agent skill?

npx skills add https://github.com/full-stack-skills/testing-skills --skill junit
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides standard documentation and guidance for the JUnit testing framework. No malicious patterns, suspicious dependencies, or data exfiltration risks were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

When to use this skill

Use this skill whenever the user wants to:

  • 用 JUnit 4/5 编写 Java/Kotlin 单元测试与扩展
  • 使用断言、生命周期、参数化与 mock(Mockito 等)

How to use this skill

  1. 用例:@Test、@BeforeEach、@AfterEach;Assertions(assertEquals、assertThrows);@ParameterizedTest。
  2. 生态:JUnit 5 + Mockito/AssertJ;Maven/Gradle 依赖与 surefire 配置。
  3. 运行:mvn test、gradle test;IDE 运行与覆盖率。

Best Practices

  • 单测独立、可重复;避免依赖顺序与外部服务。
  • 用 mock 隔离依赖;命名与结构清晰。
  • 覆盖率与速度平衡;CI 中必跑。

Keywords

junit, JUnit 5, 单元测试, Java, Kotlin

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/full-stack-skills/testing-skills/junit">View junit on skillZs</a>