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

Allow skipping tests at run-time. #395

Closed
vadz opened this issue Mar 27, 2015 · 4 comments · Fixed by #2360
Closed

Allow skipping tests at run-time. #395

vadz opened this issue Mar 27, 2015 · 4 comments · Fixed by #2360

Comments

@vadz
Copy link
Contributor

vadz commented Mar 27, 2015

This is another request for a way to skip tests, but it's not quite the same as #355 because in my case the condition determining if the test can be run or should be skipped is dynamic and determined by the program itself (basically it connects to the database specified on the command line and does different things depending on the exact kind of RDBMS).

Currently I just test the condition and use WARN("Skipped because..."), but this is not ideal because the test still counts as passing when, in fact, it wasn't run at all.

@Xazax-hun
Copy link

The next level would be to have a declarative way of describing dependencies between tests. And when one is skipped or failed skip the dependent ones.

@ranty-fugue
Copy link

It would be really great to have this facility for a bunch of tests I have, as their viability is determined only at runtime.

@vadz
Copy link
Contributor Author

vadz commented Jan 12, 2023

Great, thanks for implementing this! Will it be only part of v3 or is there a chance of this being backported to v2?

@horenmar
Copy link
Member

I am not backporting it, someone else could -> the code should not have many dependencies on other v3 code.

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

Successfully merging a pull request may close this issue.

5 participants