agentsclimarketplace

Unit test

Skill DongDuong2001/pudo-code-system/skills/test/unit-test

Unit testing techniques, mocking, and assertionsFrom its SKILL.md

Install
npx -y skills add DongDuong2001/pudo-code-system --skill unit-test

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

0.8 KB, 164 tokens by cl100k_base, as published. Nobody here has run it

Unit Test Skill

This skill focuses on writing fast, isolated tests for individual units of code (functions, methods, classes).

When to use this skill

  • When writing tests for utility functions, algorithms, or standalone classes.
  • When using tools like Jest, pytest, JUnit, or xUnit.
  • When needing to mock out dependencies (databases, APIs, file systems).

Guidelines

  • Isolation: A unit test should not rely on an external database or network. Use mocks or stubs instead.
  • Naming: Use clear, descriptive names (e.g., calculateTotal_withValidInput_returnsCorrectSum).
  • Structure: Use the Arrange-Act-Assert (AAA) pattern.
  • Speed: Unit tests must be fast so developers can run them frequently.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.