Repository navigation
Add integration tests and zimcheck - #76
Merged
Merged
Conversation
masanta-s
marked this pull request as ready for review
December 1, 2026 15:42
Contributor
Author
|
@benoit74 could you please review this when you are free ? Thanks! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #76 +/- ##
=======================================
Coverage 92.36% 92.36%
=======================================
Files 4 4
Lines 380 380
Branches 37 37
=======================================
Hits 351 351
Misses 25 25
Partials 4 4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
benoit74
force-pushed
the
integration-tests
branch
from
December 3, 2026 10:38
5ac8e92 to
83de958
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #72
This adds an integration test suite, following the maps setup.
run-integration-testsjob in the Tests workflow.The job builds the Docker image and scrapes the Git docs (209 pages, about 10 seconds). Then it runs zimcheck from the zim-tools Docker image. Then it runs the tests in
tests-integrationinside the scraper image.The tests check the metadata, the main page, and some pages and assets. They also check that every navbar link is in the ZIM and that search works. One test makes sure no page shows the "This documentation is missing" message.
The scraper does not retry failed HTTP requests. I saw one timeout in about 20 local runs, so the scrape step retries up to 3 times.
zimcheck passes on this ZIM. I did not use D3.js because it still has the missing landing page (#51) and external images (#21).
The new job also builds the Docker image, like the existing
build_dockerjob. I can removebuild_dockerif you prefer, like in maps.