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

Add --only-pending CLI option which filters to only the pending examples #3066

Open
jvon1904 opened this issue Jan 29, 2024 · 3 comments
Open

Comments

@jvon1904
Copy link

Add --only-pending CLI option filter

The --only-failures CLI option is very helpful. It looks in the examples.txt file for tests that failed and only runs those.

Having the option to run only those examples that were pending would be helpful as well.

@pirj
Copy link
Member

pirj commented Jan 29, 2024

Firstly, this might be a deceiving option. Some examples would only appear as pending after actually running them, eg those where pending is set inside the example.

Also, this can already be achieved by using the tag filter, as pending examples are assigned the pending: true metadata..

@pirj pirj closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
@JonRowe JonRowe reopened this Jan 30, 2024
@JonRowe
Copy link
Member

JonRowe commented Jan 30, 2024

@pirj the example status we record is a result of executing the example so includes those where pending is set inside the example, thus this is not currently achievable, @jvon1904 I'd review this if you'd like to tackle it

@jvon1904
Copy link
Author

Sounds good, I will work on it. Thank you @pirj and @JonRowe!

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

No branches or pull requests

3 participants