mapbox / mapbox-gl-test-suite

Rendering tests for Mapbox GL
6 stars 12 forks source link

Better test name matching mechanism #150

Closed mourner closed 8 years ago

mourner commented 8 years ago

I got tired of remembering exact names of test groups and their subtests, and not being able to, for example, simply run all line-related tests at once (or related to any other feature I'm working on).

This PR changes the matching logic so that you can just write node test/render.test.js line and it will run line-color, line-blur, line-cap, etc. It only matches the beginning of keywords, so line won't match outline, but will match 1024-line for example.

It will match both groups and subtests, so you can do property-function to run all DDS-related tests. You can still do line-color/default to match specific tests, or line-color/ to match a specific group.

cc @jfirebaugh @lucaswoj