



25' MegaHack Series Workshop: Testing Using Bankrun
Master Solana testing in Bankrun!
Bankrun is a testing library used for simulating validator environments to test program invocations and behaviors. Testing is a normal practice that catches bugs before deployments.
What this workshop covers:
- introduction to Bankrun
- setting up test case environments
- writing basic and advanced unit tests
- using Bankrun vs. local validator testing
Presenter’s note: I’ve been dabbling in Solana development for close to a year now, and have written a whole lot of tests for Anchor programs. It’s crazy that Bankrun has not seen the adoption it should as a superior method of writing tests that are fast, and with very little guided resources out there, I’m here to change that.
In 2 hours, I vow to give you the best masterclass on Solana unit testing to supercharge your development journey.
Prerequisites:
- fundamentals of TypeScript, Anchor and Solana development
- an eagerness and motivation to learn
