unit-testing

Installation
SKILL.md

Unit Testing Guidelines

General Principles

1. Test Independence

  • Each test must be independent and self-contained
  • Tests must not rely on execution order
  • Use local variables within test methods instead of shared instance variables when possible

2. Clear Test Names

Follow the pattern: methodName_scenario_expectedBehavior

Examples: tableExists_positive_tableIsPresent, deleteTimer_negative_timerDescriptorIdIsNull

3. Test Organization

Structure every test with: ArrangeActAssert

Mockito Best Practices

Related skills

More from folio-org/folio-eureka-ai-dev

Installs
17
First Seen
Feb 24, 2026