test-foundry

Generate Foundry/Forge test suites with fuzz, invariant, and fork testing for Solidity contracts.

1|1|Updated May 6, 2026
One-click install
npx skills add https://github.com/Thanasimos/Thanas-flare-builders-toolkit --skill test-foundry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-foundry
Source: https://github.com/Thanasimos/Thanas-flare-builders-toolkit/tree/main/test-foundry
Command: npx skills add https://github.com/Thanasimos/Thanas-flare-builders-toolkit --skill test-foundry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a production-grade Foundry/Forge test suite for a Solidity contract, turning manual test scaffolding into an automated, battle-tested framework.

Core Features & Use Cases

  • Fuzz testing, invariant checks, and fork testing are integrated to ensure robust coverage across common and edge-case scenarios.
  • Structured test groups aligned to contract source order, with reusable patterns for setup, assertions, and event verification.
  • Suitable for teams delivering audit-grade test suites with deterministic results and clear failure signals.

Quick Start

Run forge test to execute the generated Foundry/Forge test suite against your contract and iterate on the coverage strategy.

Frequently Asked Questions about test-foundry

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

FAQPage Schema
How do I generate a Foundry test suite for my Solidity contract?

To generate a Foundry test suite, apply automated scaffolding to your Solidity contract to create Forge tests structured by source order, resolving external dependencies and establishing deterministic setup patterns.

What is invariant testing in Solidity and when do I need it?

Invariant testing in Solidity checks that protocol state properties remain unbroken under arbitrary function calls. You need it to ensure robust coverage across edge-case scenarios where standard unit tests fail.

Can I use Forge for forked integration tests across multiple deployment scenarios?

Yes, Forge supports forked integration testing. You can configure forked networks to verify contract behavior against multiple deployment scenarios, ensuring deterministic results and clear failure signals.

Does this approach support fuzz testing for audit-grade Solidity coverage?

Yes, fuzz testing is integrated to provide audit-grade Solidity coverage. It automates edge-case discovery by running inputs against assertions and event verifications within structured test groups.

What is the best way to structure Foundry tests for event verification and setup?

The best way to structure Foundry tests is by aligning test groups to contract source order. This uses reusable patterns for setup, assertions, and event verification, yielding deterministic test execution.

Why does my Forge test suite lack robust coverage across edge-case scenarios?

Your Forge test suite lacks robust coverage if it omits fuzz tests and invariant checks. Integrating these testing patterns ensures edge-case scenarios are evaluated and resolved deterministically.