Testing
Evolution SDK supports multiple testing strategies — from unit tests that validate schemas and encoding to full integration tests running against a local devnet. The SDK uses @effect/vitest as its testing framework.
Unit Tests
Test schemas, encoding, and address utilities
Integration Tests
Test full transaction workflows with devnet
Emulator
Use devnet as a local blockchain emulator for testing
Testing Strategies
| Strategy | Speed | Complexity | Use Case |
|---|---|---|---|
| Unit tests | Fast | Low | Schema validation, encoding, address parsing |
| Integration tests | Slow | High | Transaction building, submission, smart contracts |
| Emulator (devnet) | Medium | Medium | End-to-end workflows without external dependencies |
Next Steps
- Unit Tests — Test schemas, encoding, and address utilities
- Integration Tests — Test with devnet for full transaction lifecycle
- Emulator — Use devnet as a local blockchain emulator