-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create fixture suite for new 2.0 spec validations #184
Comments
A number of these cases are covered by |
@flippmoke I've created MVT buffers for every case above and more that we can start using in Mapnik Vector Tile! https://github.com/mapbox/evilmvt |
Update: Now at https://github.com/mapbox/mvt-fixtures which includes valid MVT fixtures as well. I'll start working on including these into the library! |
I recommend testing that any fields in the protobuf lie within the numeric range of the fields of the spec, i.e. that it's not writing to fields not defined in https://github.com/mapbox/vector-tile-spec/blob/master/2.1/vector_tile.proto |
Work on a new and better fixture suite is now taking place at mapbox/mvt-fixtures#15. Once that is done, we'll integrate back here. Creating a new ticket to track that integration -> #255 |
Background
This came up in a recent
2.0
spec update ofmapnik-upload-validate
where @springmeyer encountered errors that weren't being thrown after we had removed the deprecatedvt.parse()
method. Adding the check back in helped, but we are still in a spot where "our existing test coverage appears to be completely missing for this code".The question now is do we write tests for invalid tiles within
mapnik-upload-validate
or do we ensure all of these potential failures have been properly tested UPSTREAM inmapnik-vector-tile
?Action
This ticket is a reminder to put together a suite of invalid vector tiles so we can test within
mapnik-vector-tile
to safely ensure downstream tests in other modules depending onnode-mapnik
are not re-testing the same exact stuff.Tasks
We'll want to cover all of the validation errors in
vector_tile_is_valid.hpp
:We'll also need a solid workflow in place to actually create these tiles.
Related question: what is our current status for properly formatted tiles and tests written around them?
The text was updated successfully, but these errors were encountered: