hhvm / hacktest

A unit testing framework for Hack
MIT License
29 stars 13 forks source link

Add CLI option to only run tests matching a certain pattern #54

Closed PranayAgarwal closed 5 years ago

PranayAgarwal commented 6 years ago

Adding a new CLI argument to the hacktest executable (--name or -n) which takes an optional shell pattern and, if provided, skips test methods that don't match this pattern.

Suggestions for arg name changes are welcome.

fredemmott commented 6 years ago

Those don't need to be/shouldn't be implemented in this request, but we should consider the UI and how they'll be threaded through, as that should influence how this part is done

fredemmott commented 6 years ago

Waiting for feedback/response on filtering out things other than method names, and if --name is appropriate for that (e.g. that could reasonably be thought of as a classname filter)

facebook-github-bot commented 5 years ago

This pull request has been merged in hhvm/hacktest@caac61692d4679b7ecc92724b2e90023259c9823.