unit-testing

LeeWay-governed Unit Testing workflow. Use when a task requires unit testing procedures, validation, and evidence.

SKILL.md

GitHub

/* LEEWAY HEADER — DO NOT REMOVE

REGION: DEV.QA TAG: DEV.QA.UNIT_TESTING

COLOR_ONION_HEX: NEON=#00FF00 FLUO=#32CD32 PASTEL=#E8F5E9

ICON_ASCII: family=lucide glyph=zap

5WH: WHAT = unit testing skill for Leeway-compliant AI systems WHY = Provides capabilities for testing within the AIskills ecosystem WHO = Leeway Industries (By Leonard Jerome Lee) WHERE = skills/testing/unit-testing/SKILL.md WHEN = 2026 HOW = Leeway-governed skill.md definition with structured capabilities and tags

AGENTS: ASSESS AUDIT

LICENSE: MIT */

Unit Testing

Expert in: Writing comprehensive unit tests using frameworks like Jest, Pytest, and Vitest.

Capabilities

  • Write unit tests with mocking
  • Create test fixtures and factories
  • Set up and teardown test environments
  • Assert on behavior and state
  • Mock external dependencies
  • Achieve high code coverage
  • Organize tests effectively

Use this skill when:

  • Adding tests to new code
  • Improving test coverage
  • Testing complex functions
  • Setting up test infrastructure
  • Creating reusable test utilities
  • Testing edge cases and error states

Key techniques

  • Arrange-Act-Assert pattern
  • Mocking with Jest, unittest.mock, pytest-mock
  • Test fixtures and factories
  • Parameterized testing
  • Code coverage analysis
  • Testing error conditions

Tags

testing jest pytest unittest mocking