ConservationMetrics / mapgl-tile-renderer

Headless Node.js Maplibre-GL renderer for generating MBTiles with styled raster tiles.
MIT License
6 stars 3 forks source link

Add Node.js test suite with a reasonable degree of coverage #18

Closed rudokemper closed 4 months ago

rudokemper commented 4 months ago

Feature Request

This PR added some automated tests via Dockerhub, but we should have a basic Node.js test suite as well.

User Stories & Acceptance Criteria

Get tests working with each of the fixtures in tests/fixtures, and the online services. Add unit tests for any function likely to run into edge cases, and a few integration tests.

Implementation Plan

There might be some tests and fixtures that we can use from mbgl-renderer, albeit that those are largely focused on static image outputs.

rudokemper commented 4 months ago

https://github.com/ConservationMetrics/mbgl-tile-renderer/pull/23 added the framework but I want to keep this issue open as a reminder to add more tests coverage.