evm-testing

Write Foundry and Hardhat EVM tests with unit, fuzz, and invariant patterns.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/labsaistudio/AABC-Labs --skill evm-testing-labsaistudio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evm-testing
Source: https://github.com/labsaistudio/AABC-Labs/tree/main/backend/agent/skills/catalog/evm-testing
Command: npx skills add https://github.com/labsaistudio/AABC-Labs --skill evm-testing-labsaistudio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writes robust, battle-tested testing patterns for EVM smart contracts across Foundry and Hardhat to accelerate quality assurance.

Core Features & Use Cases

  • Unit testing patterns for Solidity Foundry tests and Hardhat JS tests
  • Fuzz testing, invariant testing, and fork testing workflows with concrete examples
  • Gas-optimization guidance and deterministic testing practices for reproducible results

Quick Start

Start by examining a representative Foundry unit test and adapt the patterns to your Solidity contracts.

Frequently Asked Questions about evm-testing

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

FAQPage Schema
How do I write fuzz testing and invariant testing patterns for Solidity smart contracts?

Fuzz testing and invariant testing patterns for Solidity smart contracts provide structured workflows to identify edge cases and verify protocol rules. These patterns include concrete examples for both Foundry and Hardhat to ensure robust EVM test coverage.

What are the best testing patterns for Foundry and Hardhat in EVM projects?

The best EVM testing patterns for Foundry and Hardhat cover unit tests, fuzzing, invariant tests, and fork testing. They provide concrete examples and deterministic testing practices to accelerate quality assurance and achieve reproducible results in Solidity projects.

How do I set up fork testing workflows for EVM smart contracts?

Fork testing workflows for EVM smart contracts allow you to test against mainnet state by providing concrete examples in both Foundry and Hardhat. These patterns help validate protocol integrations and deterministic behaviors without needing tool installation guidance.

Does this cover gas optimization guidance and deterministic testing practices for Solidity?

Yes, gas optimization guidance and deterministic testing practices for Solidity are explicitly covered. These patterns ensure reproducible results by applying structured testing workflows within Foundry and Hardhat environments to validate contract efficiency and execution consistency.

Can I use these EVM testing patterns without tool installation instructions?

Yes, you can use these EVM testing patterns without tool installation instructions because the focus is strictly on writing robust tests. The patterns provide Foundry and Hardhat examples for unit, fuzz, invariant, and fork testing, assuming your environment is already configured.

Why does my Foundry unit test lack deterministic results when testing EVM contracts?

Foundry unit tests may lack deterministic results when testing EVM contracts if deterministic testing practices are not applied. Adopting structured testing patterns for fuzzing and invariant testing ensures reproducible outcomes and robust quality assurance for Solidity projects.