zplCore.comzplCore.com
31 types

ZplCore.Testing

Fluent semantic label assertions (ZplAssert, LabelAssertions, BarcodeAssertions, TextAssertions), element selectors, and printer fit assertions.

TypeKindSummary
BarcodeAssertionsclassAssertions on one barcode: scan-proof (decode, grade, quiet zones) and measured geometry.
ElementAssertions<TSelf, TElement>classAssertions shared by text and barcode elements: position and layout. When the element could not be selected (inside a ZplAssert…
ElementChangerecordA semantic difference between two renders of a label.
ElementChangeKindenumKind of a ElementChange.
IZplPrinterFitinterfaceExtension point of LabelAssertions.FitsPrinter and zplcore check --printer: anything that can tell whether a label prints corre…
LabelAssertionsclassFluent assertions on a rendered ZPL job. Job-level assertions (LabelAssertions.HasLabels, LabelAssertions.Renders, LabelAsserti…
PrinterFitContextrecordWhat a printer-fit check sees: the ZPL, the resolution it was rendered at and every measured label.
PrinterFitIssuerecordA reason why a label does not fit a printer.
PrinterProfileFitclassA Printer Twin profile (PrinterProfiles) as IZplPrinterFit: LabelAssertions.FitsPrinter and zplcore check --printer ZD421d-203 …
PrinterProfileFitExtensionsclassPrinterProfile helpers for the assertions.
PrinterSpecclassData-sheet printer limits: resolution, maximum print width and label length. Checks that the label was designed for the printer…
SemanticDiffclassElement-level diff of two renders (used by snapshots and by zplcore check --baseline).
SnapshotDocumentrecordSemantic snapshot (name.approved.json next to the approved PNGs): resolution, label sizes and the elements with position and co…
SnapshotElementrecordOne element of a semantic snapshot: what was drawn where (dots), independent of the pixels.
SnapshotLabelrecordOne label of a semantic snapshot.
SnapshotLabelResultrecordComparison result of one label of a snapshot.
SnapshotOutcomeenumOutcome of a snapshot comparison.
SnapshotResultrecordResult of SnapshotStore.Verify.
SnapshotStoreclassSnapshot folder with the approval workflow. Files per snapshot name: name.approved.png (label 1), name.label2.approved.png … – …
SnapshotSubjectrecordWhat a snapshot stores for a render: one PNG per label and the semantic document.
SnapshotTolerancerecordHow much a rendered label may differ from its approved snapshot. A label passes when the changed pixels (after ignoring ink tha…
TextAssertionsclassAssertions on one text field.
ZplAssertclassEntry point of the semantic label assertions. ZplAssert.Label(zpl) renders the label once and returns a fluent LabelAssertions …
ZplAssertSettingsclassProcess-wide defaults for ZplAssert.
ZplAssertionExceptionclassThrown when a label assertion fails. Works with every test framework (any exception fails a test); see ZplAssertSettings.Except…
ZplAssertionFailurerecordOne failed label assertion: what was expected, what the label prints instead, where (label, element position, ZPL line) and the…
ZplAssertionScopeclassCollects every failed label assertion inside the scope and throws them together when the scope is disposed, so one test run sho…
ZplPrinterFitclassFactory helpers for IZplPrinterFit.
ZplSelectorsclassHow LabelAssertions.Barcode and LabelAssertions.Text find elements. The first rule that matches anything wins.
ZplTestFrameworksclassOptional adapters that turn a ZplAssertionException into the assertion exception of a test framework, so the framework reports …
ZplTestOptionsrecordPer-label settings of ZplAssert.Label. Unset values come from ZplAssert.Settings.