web3-testing

Installation
Summary

Comprehensive smart contract testing with Hardhat and Foundry, supporting unit tests, integration tests, mainnet forking, and gas optimization.

  • Supports both Hardhat (JavaScript/TypeScript) and Foundry (Solidity) testing frameworks with fixtures, cheatcodes, and assertion libraries
  • Includes mainnet forking capabilities for realistic testing against live contract state, account impersonation, and time manipulation
  • Covers gas optimization testing, fuzzing for edge cases, snapshot/revert patterns, and automated coverage reporting
  • Provides Etherscan contract verification and CI/CD integration examples for automated test pipelines
SKILL.md

Web3 Smart Contract Testing

Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns.

When to Use This Skill

  • Writing unit tests for smart contracts
  • Setting up integration test suites
  • Performing gas optimization testing
  • Fuzzing for edge cases
  • Forking mainnet for realistic testing
  • Automating test coverage reporting
  • Verifying contracts on Etherscan

Hardhat Testing Setup

// hardhat.config.js
require("@nomicfoundation/hardhat-toolbox");
Related skills

More from wshobson/agents

Installs
6.2K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 20, 2026