Parse --grep and --invert for mocha

This commit is contained in:
Kevin Sawicki 2017-08-02 10:57:15 -07:00
parent 5e06ac11e9
commit 7cf34c6f62

View file

@ -81,8 +81,13 @@ def parse_args():
help='Run tests in CI mode', help='Run tests in CI mode',
action='store_true', action='store_true',
required=False) required=False)
parser.add_argument('-g', parser.add_argument('-g', '--grep',
help='Filter', help='Only run tests matching <pattern>',
metavar='pattern',
required=False)
parser.add_argument('-i', '--invert',
help='Inverts --grep matches',
action='store_true',
required=False) required=False)
parser.add_argument('-v', '--verbose', parser.add_argument('-v', '--verbose',
action='store_true', action='store_true',