This document outlines testing approaches across frontend, backend, and smart contracts.
- Frontend: 70%
- Backend: 80%
- Contract: 90%
- Unit tests (services, handlers)
- Integration tests (DB + APIs)
- Component tests
- UI interaction tests
- Function-level tests
- Edge case coverage
- Stellar RPC: mock responses
- IPFS: stub upload/download
- Freighter: mock wallet provider
- Use fixtures for consistent data
- Factories for dynamic test generation
- Use TestContainers / docker-compose
- Spin up DB + services
- Start server
- Run flows (auth, transactions, etc.)
- Cleanup after tests
- Tests run via GitHub Actions
- Command:
pnpm test/cargo test
pnpm install
pnpm test
cargo testDone.