Golden Master Test Generator
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This tool connects to your EVM wallet and generates golden master test fixtures for smart contracts. It reads contract source code to extract function signatures, parameters, and return types. The tool uses optional test data and fixtures to generate comprehensive test scenarios. It produces golden master test code that captures expected contract behavior, enabling regression detection when contracts are modified. The generated tests serve as a baseline for verifying that contract behavior remains consistent across deployments and updates.
HOW TO USE
Connect your Web3 wallet using the Connect button. Paste your contract source code in the Contract Source Code field. Optionally, provide test data and fixtures in JSON format in the Test Data field—this can include scenarios with inputs and expected outputs, as well as fixture values. Click "Generate Tests" to produce golden master test fixtures and code. Click "Load Sample" to populate fields with an example contract and test data. Results appear in the Results card with a summary of functions found, test scenarios generated, and fixtures available, followed by detailed test code you can copy and adapt.
TECHNICAL MECHANISM: SOURCE CODE PARSING AND TEST FIXTURE GENERATION
The tool uses regular expression pattern matching to parse contract source code and extract function signatures. It captures function names, parameter names and types, visibility modifiers, and state mutability. When test data is provided as JSON, the tool integrates it into the generated test suite. Scenarios define specific function calls with input values and expected outputs. Fixtures provide reusable test values. The tool generates test code in a Hardhat/Foundry-compatible format with boilerplate for deployment, function calls, and assertions. Generated tests include placeholders for golden master assertions, which developers can customize with expected values.
WHAT IT CANNOT SEE
This tool cannot verify that generated test fixtures correctly represent expected behavior—the fixtures must be reviewed and validated by developers. It cannot generate tests for contracts without existing test data or on-chain interactions—the tool requires source code and optional test data. It cannot handle contracts with complex state dependencies or external calls in fixtures—the tool generates basic test templates. It relies on test execution data and may produce incomplete fixtures—the tool does not analyze actual contract execution. It cannot guarantee that golden master tests will detect all regressions—comprehensive test coverage depends on thorough test design.
PLEASE NOTE
This is a read-only tool—it never signs transactions. All data is processed in-memory and never persists. The tool supports EVM chains only—Ethereum, Polygon, BSC, Arbitrum, Optimism, Avalanche, Base, and Fantom. Generated golden master tests should be treated as a starting point and refined with real-world data and edge cases. Test fixtures should be validated against actual contract behavior before being used as regression tests.