Testing¶
Testing procedures for Mystery Gift platform.
Unit Tests¶
Run unit tests:
Integration Tests¶
Wallet Connection¶
Test wallet connection flow:
- Connect a Solana wallet
- Verify $MYS token balance
- Check token holder entry status
Raffle Flow¶
Test complete raffle cycle:
- Wait for scheduled raffle start
- Verify token holder snapshot
- Submit free entry via Twitch
- Verify winner selection
- Check NFT transfer to winner wallet
- Verify Twitter announcement
Marketplace Testing¶
Test pack purchase and opening:
- Connect wallet with $MYS
- Purchase a pack
- Verify payment processing
- Open pack (reveal cards)
- Verify NFT transfer to wallet
- Check inventory display
Load Testing¶
Test platform under load:
Test Data¶
Use devnet for testing:
SOLANA_NETWORK=devnet- Devnet faucet: https://faucet.solana.com
- Test NFTs created via scripts
Debugging¶
Enable debug logging in .env:
Next Steps¶
- Deployment - Production deployment