Skip to content
Back to skills

Unit Testing

ASecurity

Write fast, isolated, behaviour-focused unit tests with clear arrange/act/assert structure.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentstesting

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill unit-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unit Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unit Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-unit-testing/badge)](https://www.skillsdirectory.com/skills/karthikrshet-unit-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unit-testing
description: Write fast, isolated, behaviour-focused unit tests with clear arrange/act/assert structure.
tags: [testing]
---

# Unit Testing

## When to use

- Pure logic, domain rules, utilities

## Procedure

1. Name tests by behaviour
2. Arrange minimal data with builders
3. Act once
4. Assert on outputs and observable effects
5. Cover edge cases and errors

## Checklist

- [ ] Tests run in milliseconds
- [ ] No shared mutable state

## Anti-patterns

- Testing private methods
- Snapshot tests for logic

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.