web3-testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

By wshobson · 9,637 installs

npx skills add wshobson/agents --skill web3-testing

Source repository · Upstream listing

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 Unit Testing Patterns Foundry Testing (Forge) Advanced Testing Patterns Snapshot and Revert Mainnet Forking Impersonating Accounts Additional patterns and templates More detailed templates and worked examples live in references/details.md . Read that file for the full pattern library.