web3-testing

Automate Solidity smart contract testing with Hardhat and Foundry.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill web3-testing-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web3-testing
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/web3-testing
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill web3-testing-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Enables comprehensive, structured testing of Solidity smart contracts by combining Hardhat and Foundry workflows, including unit tests, integration tests, and mainnet forking for realistic validation.

Core Features & Use Cases

  • Unit and integration tests for Solidity contracts using Hardhat and Foundry.
  • Mainnet forking to simulate real network conditions and verify interactions with on-chain state.
  • Gas usage analysis, test coverage, and optional contract verification workflows.

Quick Start

Run the test suite to execute unit and integration tests against a forked mainnet using Hardhat and Foundry.

Frequently Asked Questions about web3-testing

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

FAQPage Schema
How do I test Solidity smart contracts using Hardhat and Foundry together?

Testing Solidity smart contracts with Hardhat and Foundry is automated by configuring Hardhat environments and executing Foundry Forge tests to cover unit, integration, and mainnet-forked development scenarios.

What is mainnet forking for smart contract integration testing?

Mainnet forking is a testing technique that simulates real network conditions by replicating on-chain state, allowing smart contracts to validate interactions against actual deployed protocols during integration testing.

Can I automate contract verification workflows alongside my Solidity tests?

Contract verification workflows are optionally supported alongside Solidity test execution, allowing you to automate smart contract verification directly within your Hardhat and Foundry testing pipeline.

Does this testing approach support both unit and integration tests for Solidity?

Yes, the automated testing approach supports both unit tests and integration tests for Solidity smart contracts, utilizing both Hardhat and Foundry Forge frameworks to ensure comprehensive validation.

What do I need to set up mainnet-forked development scenarios for Solidity tests?

Setting up mainnet-forked development scenarios requires configuring your Hardhat environment to fork the mainnet, enabling Foundry Forge tests to validate smart contract interactions against real on-chain state.