mapbox / mapbox/tilelive-omnivore

More responsive and detailed tests

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
8
Forks
8
PR merge metrics
No merged PRs in 30d

Description

This ticket serves as a reminder for the future...

Per chat with @rclark , tests should be a bit more verbose. This will come in handy when gut-checking major changes to the metadata object, and will be relevant in the coming months when we do a major overhaul of the metadata json.

  • Add more detailed assertions for info returned and for expected mapnikXML generated.
  • Remove the hardcoded fixtures, and create fixtures on the fly based on metadata returned from mapnik-omnivore.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the existing tests, hardcoded fixtures, metadata handling, and mapnikXML generation mentioned in the issue. Review how metadata is returned by mapnik-omnivore, then expand assertions and generate fixtures from that metadata; done means the tests provide detailed coverage without hardcoded fixtures.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.