name: hive-run description: Build and run Hive integration tests. Use when you need to test Ethereum clients using Hive's simulation framework. argument-hint: "[simulator] [--client client-name]" disable-model-invocation: true
Run Hive Tests
Build Hive and run integration test simulations against Ethereum clients.
Arguments
$0: Simulator to run (e.g.,ethereum/sync,ethereum/rpc)--client: Client to test against (e.g.,core-geth,go-ethereum)
Hive Structure
- Client definitions:
hive/clients/<name>/ - Simulators:
hive/simulators/<category>/<name>/ - Clients are Docker containers configured via
HIVE_*environment variables
Workflow
- Navigate to the hive directory
- Build hive if needed:
go build . - Run the specified simulator:
./hive --sim $0 --client <client> - Report the test results
Common Simulators
ethereum/sync- Block synchronization testsethereum/rpc- JSON-RPC API testsethereum/consensus- Consensus mechanism tests
Example Usage
/hive-run ethereum/sync --client core-geth
/hive-run ethereum/rpc --client go-ethereum
Troubleshooting
If tests fail:
- Check Docker is running and accessible
- Verify the client image builds successfully
- Check hive logs in the workspace directory
- Consult Hive Documentation