Skip to content
Blockchain Association of Cameroon
BAC-L2-COSMOS-117Cosmos SDKAdvanced

Testing a Cosmos application

From keeper unit tests to integration tests on a simulated network: the only thing separating a shippable chain from a prototype.

Level
L2Appchain developer
Duration
4 h
Track
Cosmos SDK
Maintainer
Cosmos Lead Architect

Learning objectives

  • 01Test a keeper in isolation from the chain
  • 02Write an end-to-end integration test
  • 03Replay a load scenario on a simulated network

Guided lab

Raise the business module's coverage past the required threshold, rejection cases included.

Independent lab

Write a simulation running thousands of random operations and checking invariants.

Security angle

The supply-conservation invariant: the test that would have caught most real minting incidents.

Assessment

Test suite and simulation running in CI.