Testing
Apache Pulsar Functions Testing: Unit Tests, Mocks, and Multi-Tenant Scenarios
Apache Pulsar Functions are lightweight compute units that transform or route messages — they're easy to unit-test because the Pulsar team provides a MockContext that eliminates the broker dependency. Stateful functions need state store tests. Multi-tenant applications need namespace isolation tests. Schema evolution tests prevent production data