Skip to content

Integration test: Document reference#106

Open
christianabbet wants to merge 5 commits intodevelopfrom
feat/issue-96/integration-test-reference-doc
Open

Integration test: Document reference#106
christianabbet wants to merge 5 commits intodevelopfrom
feat/issue-96/integration-test-reference-doc

Conversation

@christianabbet
Copy link
Collaborator

@christianabbet christianabbet commented Mar 9, 2026

Close #96 (comment)

Description

Add tests to verify the output coherence of the pipeline. This complements .github/workflows/pipeline_run.yml, which validates that the pipeline runs successfully but does not check the consistency of its output.

To perform these tests, a PDF is constructed from single pages covering all supported classes using the script src/scripts/create_reference_document.py. The resulting reference_document.pdf is fed through the pipeline. The tests then verify that:

  • Page count matches the number and index of detected pages
  • Entities fall within the document page range
  • Document page classification is coherent with detected entities (classes match across input and output)

@christianabbet christianabbet changed the title INtegration test: Document reference Integration test: Document reference Mar 9, 2026
@christianabbet christianabbet marked this pull request as ready for review March 9, 2026 16:07
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.

Add integration test using a reference document

1 participant