foundry-test-formatting
CommunityFormat Foundry test outputs for readable logs.
Authorphpmac
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Foundry unit tests often print raw uint values (wei) which are hard to read. This skill provides formatting helpers to render numbers as human-friendly ether values and to organize logs for easier debugging.
Core Features & Use Cases
- _formatEther converts wei to readable ether strings.
- _logStage prints stage separators for test steps.
- _logLine shows before/after values and deltas in a concise format.
- _trimTrailingZeros and _toStringPadded improve numeric string representations.
- Demonstrates use cases like displaying balances, prices, and token amounts in tests.
Quick Start
Import the formatting helpers into your Foundry test and start producing readable ether values and stage logs with _formatEther, _trimTrailingZeros, and _logLine.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: foundry-test-formatting Download link: https://github.com/phpmac/skills/archive/main.zip#foundry-test-formatting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.