
Description
web3-testing is an agent skill from the wshobson/agents collection for testing smart contracts thoroughly with Hardhat and Foundry. It covers unit tests for individual contract functions, integration tests across several contracts, and mainnet forking, which runs tests against a copy of the live Ethereum network so that contracts can be checked against real deployed protocols. The skill covers fuzzing, which feeds a contract large numbers of random inputs to find edge cases a person would miss, gas optimization testing, which measures what functions cost to run, and automated test coverage reporting. It also covers verifying contracts on Etherscan so their source code can be read publicly. The skill includes a Hardhat testing setup as one of its core sections. It applies when writing unit tests for smart contracts, setting up integration test suites, measuring gas use, fuzzing for edge cases, forking mainnet for realistic tests, producing coverage reports, and verifying contracts on Etherscan. Passing tests do not prove that a contract is safe, so the skill should be used alongside the security guidance and an independent audit before any contract that holds value is deployed. The skill is installed with the skills CLI from the wshobson/agents repository. Its skills.sh page showed about 10.6K installs and passing results from three security audits at the time of the scan.…
Highlights
- Unit and integration tests with Hardhat and Foundry
- Mainnet forking for realistic tests
- Fuzzing for edge cases
- Gas optimization testing
- Coverage reports and Etherscan verification
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate web3-testing.
People also visit
web3-testing FAQ
Which tools does it use?
Hardhat and Foundry, along with the testing patterns they support.
What is mainnet forking?
Running tests against a copy of the live Ethereum network, so contracts can be checked against real deployed protocols.
Does it cover fuzzing?
Yes. It covers fuzzing to find edge cases with large numbers of generated inputs.
Do passing tests make a contract safe?
No. The skill should be used with security guidance and an independent audit before a valuable contract is deployed.
How do I install it?
Run npx skills add https://github.com/wshobson/agents --skill web3-testing.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best web3-testing alternatives?
Popular alternatives to web3-testing include bats-testing-patterns, e2e-testing-patterns and eval-harness-first. See all web3-testing alternatives







