Wangscape / Wangscape

Convert terrain tiles to procedural corner Wang tilesets
MIT License
65 stars 10 forks source link

Improve testing of tileset generation #26

Open serin-delaunay opened 7 years ago

serin-delaunay commented 7 years ago

At the moment many of the tests are integration tests rather than unit tests. TestGenerateTilesets and TestMetaOutputCorrect are also rather slow, especially with a debug build. This is because they both run the tileset generation routines in full.

The tests should be chopped up into smaller pieces, Google Mock should be used where appropriate, and the tile generation routines should be refactored to be more amenable to mocking.

serin-delaunay commented 7 years ago

64 makes a little progress on this issue, checking that the order and position of generated tiles is correct without needing options or running any tile generators.