Introduction
Integration Testing Tutorials
Learn how to write comprehensive tests for Neutron applications
This section contains tutorials focused on writing integration tests for your Neutron applications. Proper testing is essential for blockchain applications to ensure security and reliability.
Available Tutorials
Chain Integration Tests
Learn how to write comprehensive tests for Neutron chain modules and features
Smart Contract Tests
Test your CosmWasm smart contracts in a realistic chain environment
Mainnet Fork Testing
Test using a full mainnet fork with Rehearsal for production-like validation
More tutorials coming soon covering:
- Testing cross-chain functionalities (ICA and ICQ)
- Automating tests in CI/CD pipelines
Why Integration Testing Matters
Integration testing goes beyond basic unit tests by:
- Testing how different components interact with each other
- Simulating realistic blockchain conditions
- Verifying that your application works as expected in a chain environment
- Catching bugs that might only appear in specific chain contexts
Recommended Tools
For testing Neutron applications, we recommend:
- Rehearsal: Mainnet fork for production-like testing
- cw-multi-test: Framework for testing CosmWasm contracts
- Rust's testing framework: For unit testing individual functions
- Neutron's testing utilities: For simulating Neutron-specific features
- Docker: For setting up isolated testing environments
- Vitest: JavaScript/TypeScript testing framework (used by Rehearsal)
Prerequisites
Before diving into the integration testing tutorials, you should:
- Be comfortable with Rust programming
- Understand the basics of CosmWasm contract development
- Have completed the Onboarding Tutorials
- Have a project ready to test