Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-audit-1776071666.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Testing
Key Testing Types
The framework supports three test categories:- Unit tests - Isolated contract logic verification
- Fuzz tests - Randomized input testing
- Fork tests - Mainnet state integration tests
Essential Setup
You’ll need Foundry installed plus environment configuration. The setup requires an Ethereum RPC endpoint, with archive node access recommended for fork testing scenarios.Running Tests
Unit tests only
With fuzz tests
Complete suite
Test Organization
Tests are structured across multiple files covering different components:- TWAP orders
- StopLoss functionality
- Guards
- Order forwarding
Coverage Reporting
Generate reports excluding fork tests:lcov report format with genhtml:
Common Patterns
Tests inherit fromBaseComposableCoWTest for access to pre-configured accounts and infrastructure. The documentation includes examples for testing:
- Reverts and error conditions
- Events
- Time-based conditions
- Gas snapshots