Testing
Quick Start
# Run all tests
cargo test --all
# Run tests with output
cargo test --all -- --nocapture
# Run specific package tests
cargo test -p gateway_nodeTest Categories
Unit Tests
# Run all unit tests
cargo test --lib --all
# Run specific module tests
cargo test -p gateway_node payment::testsIntegration Tests
Contract Tests
Running Tests
All Tests
By Package
By Test Name
Ignored Tests
Test Configuration
Environment Variables
Test Filters
Smart Contract Tests
Foundry Tests
Specific Contract Tests
Test Coverage
Integration Testing
End-to-End Tests
Test with Docker
Test Writing Guidelines
Unit Test Example
Integration Test Example
Contract Test Example
Test Utilities
Test Helpers
Mock Services
CI/CD Testing
GitHub Actions Example
Test Coverage
Generate Coverage Report
Coverage Targets
Component
Target Coverage
Debugging Failed Tests
Enable Backtrace
Run Single Test Verbose
Run with Logging
Debug in IDE
Next Steps
Last updated
