Overview of IC Metrics Assert
masteric-metrics-assert is a library providing fluent, regex-based assertions for testing Prometheus-style metrics exposed by Internet Computer (IC) canisters. It allows developers to verify the state of canister metrics via the /metrics HTTP endpoint.
Key capabilities include:
- Querying metrics directly from a canister's
/metricsendpoint. - Performing regex-based assertions on metric values.
- Supporting both synchronous and asynchronous test flows.
- Integration with
PocketIcfor local canister testing environments.