Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: --list #47

Open
sbeyer opened this issue Jan 15, 2015 · 3 comments
Open

Feature request: --list #47

sbeyer opened this issue Jan 15, 2015 · 3 comments
Labels
feature Feature request

Comments

@sbeyer
Copy link
Member

sbeyer commented Jan 15, 2015

Hi,

for easier filtering (using --only or --skip) it would be awesome if bandit could output a list of the whole describe() hierarchy. (I'd suggest --list for such a feature.)
Maybe, sometimes it is also convenient to get a full list of all describe() and it(). (--full-list or --list-them or --list-all?)

Thank you,
Stephan

@joakimkarlsson
Copy link
Collaborator

6f722b9 adds a --dry-run option that essentially marks all tests as skipped. If you combine that with the spec or info reporters, you'll get a list of all describes and its.

@sbeyer
Copy link
Member Author

sbeyer commented Oct 3, 2016

In the OGDF fork of bandit I have cherry-picked the --list-tests commit by champloo and this is basically the same as --dry-run, I guess. I adapted it slightly to use the spec reporter (always, you cannot change it).

I just compared the output. The --dry-run --reporter=spec shows an ugly SKIPPED on every test, --list-tests does not. But it's probably good enough to live with.

@sbeyer sbeyer added the feature Feature request label Feb 4, 2017
@Cogitri
Copy link

Cogitri commented Jul 13, 2020

It seems like --dry-run doesn't skip the before_ each etc. blocks and only the it blocks though. As such --dry-run takes about 2 minutes to run on my machine, whereas --dry-run --only=UNIQUESTRINGTHATISNTINANYDESCRIPTION takes only a few seconds to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants