TE

testing-standards

Maintains uniform testing conventions and patterns for the Stock Indicators project.

Install

mkdir -p .claude/skills/testing-standards && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6920" && unzip -o skill.zip -d .claude/skills/testing-standards && rm skill.zip

Installs to .claude/skills/testing-standards

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Testing conventions for Stock Indicators. Use for test naming (MethodName_StateUnderTest_ExpectedBehavior), FluentAssertions patterns, precision requirements, and test base class selection.
189 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Enforce test naming conventions
  • Standardize base class selection
  • Validate required abstract test methods
  • Ensure consistent test data usage

How it works

The skill provides a set of rules for test naming, base class selection, and required method implementation, ensuring all tests follow the project's established architecture.

Inputs & outputs

You give it
Test code or test class structure
You get back
Validation of test standards compliance

When to use testing-standards

  • Standardizing new test code
  • Reviewing test naming and structure
  • Checking base class usage in tests

About this skill

Testing standards

Base class selection

StyleBase Class
SeriesStaticSeriesTestBase
BufferBufferListTestBase
StreamStreamHubTestBase
OtherTestBase

Test naming

Pattern: MethodName_StateUnderTest_ExpectedBehavior

Required abstract methods

Compile errors if missing. Additional tests are developer discretion.

Series (StaticSeriesTestBase):

  • DefaultParameters_ReturnsExpectedResults()
  • BadBars_DoesNotFail()
  • NoBars_ReturnsEmpty()

Buffer (BufferListTestBase):

  • PruneList_OverMaxListSize_AutoAdjustsListAndBuffers()
  • Clear_WithState_ResetsState()
  • Plus interface methods from ITestBarBufferList or ITestChainBufferList (see patterns reference)

Stream (StreamHubTestBase):

  • ToStringOverride_ReturnsExpectedName()
  • Plus interface methods from ITestBarObserver, ITestChainObserver, and/or ITestChainProvider (see patterns reference)

Test data

Data.GetDefault() — 502 bars. Use consistently across all tests.

See references/patterns.md for FluentAssertions patterns, precision constants, and full BufferList/StreamHub interface method lists.

When not to use it

  • When writing tests for projects outside of Stock Indicators
  • When the testing framework does not support the specified base classes

Prerequisites

FluentAssertions library

Limitations

  • Strictly tied to Stock Indicators project conventions
  • Requires adherence to specific base classes

How it compares

It provides a centralized standard for test structure, replacing inconsistent manual testing patterns with a unified convention.

Compared to similar skills

testing-standards side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
testing-standards (this skill)11moNo flagsBeginner
tdd-workflow64moReviewIntermediate
qlty-check57moReviewBeginner
superpowers-tdd56moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry