Testing

Use package tests as examples: protocol, LRC, session retry, client behavior, service provider registration, and response parsing are covered separately.

Unit

Use FakeTransport and verify exact command behavior.

Integration

Use a terminal simulator or controlled POS lab before connecting stores.

Acceptance

Verify operational recovery: drop connection, call sendLastResult(), and reconcile.

Commands

composer test
composer lint
composer analyse
Golden frames

Keep known ECR17 byte frames as fixtures for parser and LRC regression tests.