Skip to content

Add iOS Testing documentation page#378

Open
marcozoffoli-scandit wants to merge 1 commit into
mainfrom
docs/ios-testing
Open

Add iOS Testing documentation page#378
marcozoffoli-scandit wants to merge 1 commit into
mainfrom
docs/ios-testing

Conversation

@marcozoffoli-scandit

Copy link
Copy Markdown
Contributor

Adds a Testing page under the iOS Data Capture SDK section covering how to unit test scan-handling code without a camera or live capture session.

What's covered

  • Isolate the SDK behind your own abstraction (mode-agnostic): a thin listener adapter forwards plain values to a protocol you own, tested directly.
  • Mock the SDK's types with OCMockito to test existing code unchanged — includes a "what to mock" table and per-mode deltas for SparkScan, MatrixScan, ID Capture, and BarcodePick.
  • App-hosted integration test that feeds a known image through an ImageFrameSource to exercise the full licensed pipeline end to end.

Registers the page in the iOS sidebar.

Validation

Every code example is transcribed from a sample project where the tests pass on the iOS Simulator (mock/unit tests run key-free; the integration test runs in an app-hosted target with a license).

🤖 Generated with Claude Code

Add a Testing page under the iOS Data Capture SDK section covering how to unit
test scan-handling code without a camera or live capture session:

- Isolate the SDK behind your own abstraction (mode-agnostic): a thin listener
  adapter forwards plain values to a protocol you own, tested directly.
- Mock the SDK's types with OCMockito to test existing code unchanged. Includes
  a "what to mock" table and per-mode deltas for SparkScan, MatrixScan, ID
  Capture, and BarcodePick.
- An app-hosted integration test that feeds a known image through an
  ImageFrameSource to exercise the full licensed pipeline end to end.

Registers the page in the iOS sidebar.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant