cdent / gabbi

Declarative HTTP Testing for Python and anything else
http://gabbi.readthedocs.org/
Other
148 stars 34 forks source link

Add a -v or --verbose flag to gabbi-run #192

Closed cdent closed 7 years ago

cdent commented 7 years ago

A value of 'all', 'headers' or 'body' will have the expected effect on all the tests being run in the current testing session.

This is done by manipulating the 'defaults' of each test suite.

Fixes: #185

/cc @FND @tomviner

FND commented 7 years ago

Nice, thanks for this!

Only one minor concern: It seems unusual to parameterize -v, so it might be nice if gabbi-run --verbose behaved like gabbi-run --verbose=all? But IIRC argparse doesn't allow for that kind of flexibility.

cdent commented 7 years ago

But IIRC argparse doesn't allow for that kind of flexibility.

Yeah, I looked into that and couldn't figure it out so gave up with hope for future generations.