test-fixtures

Provide reusable Solidity test fixtures and helpers for Ethereum protocol development.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill test-fixtures-ccashwell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-fixtures
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill test-fixtures-ccashwell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use this skill to provide reusable Solidity test fixtures and helpers for Ethereum protocol development.

Core Features & Use Cases

  • Base test contracts with common setUp and labeling
  • Mock tokens (ERC20) and fixtures (TokenFixtures)
  • Mock oracle (MockChainlinkFeed)
  • Protocol deployment fixtures (ProtocolFixture)
  • Fork-based fixtures for deterministic mainnet-like environments
  • Shared helpers for funding and labeling

Quick Start

Extend ProtocolFixture in your test suite to bootstrap mocks and fixtures for deterministic tests.

Frequently Asked Questions about test-fixtures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Solidity test fixtures for Ethereum protocol development?

Solidity test fixtures are set up by extending reusable base contracts like ProtocolFixture to bootstrap mock tokens, oracles, and deployment environments with pre-funded accounts for deterministic testing.

What are mock tokens and how are they used in Solidity unit tests?

Mock tokens are ERC20 implementations used in Solidity unit tests to simulate token transfers and balances without requiring real assets, enabling isolated and deterministic testing of protocol logic.

Can I use fork-based fixtures to test against a mainnet-like environment?

Fork-based fixtures enable testing against a deterministic mainnet-like environment by utilizing pre-configured deployment fixtures and mock oracles to replicate live protocol states locally.

How do I create a mock Chainlink oracle for my Solidity testing environment?

You can create a mock Chainlink oracle by implementing MockChainlinkFeed within your test suite, allowing you to set and manipulate price data for deterministic protocol testing.

Does this approach require specific dependencies to spin up deployment fixtures?

Spinning up deployment fixtures does not require external dependencies, as the suite provides self-contained BaseTest contracts and shared helpers for funding and labeling addresses.

What is the best way to label addresses and fund accounts in Solidity tests?

The best way to label addresses and fund accounts in Solidity tests is by using shared testing helpers that automatically assign labels and distribute test ETH to pre-funded accounts.