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.
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 runline-color
,line-blur
,line-cap
, etc. It only matches the beginning of keywords, soline
won't matchoutline
, but will match1024-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 doline-color/default
to match specific tests, orline-color/
to match a specific group.cc @jfirebaugh @lucaswoj