Skip to content

test: add DANFSe v2 golden reference contracts - #74

Merged
vitormattos merged 2 commits into
mainfrom
test/danfse-v2-golden-references
Oct 4, 2026
Merged

vitormattos merged 2 commits into
mainfrom
test/danfse-v2-golden-references

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Closes #57.

Summary

  • add a single named DANFSe v2 structural reference suite
  • cover common taxable invoice, retained ISS, foreign taker, long taxation descriptions, IBS/CBS, legacy XML without IBS/CBS, homologation marker and PDF artifact generation
  • document the stable rendering guarantees and the deliberate non-guarantee of byte-identical PDF output
  • use synthetic/public-schema data only; no copyrighted screenshot fixtures

Baseline strategy

The golden contract is semantic/structural rather than pixel- or PDF-byte-based, avoiding false churn from QR SVG/PDF metadata while still forcing intentional review of meaningful layout/data changes.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit f5a2803 into main Oct 4, 2026
11 checks passed
@vitormattos
vitormattos deleted the test/danfse-v2-golden-references branch October 4, 2026 14:59
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.

Validate DANFSe v2 rendering against official NT 008 reference cases

1 participant