bash_unit icon indicating copy to clipboard operation
bash_unit copied to clipboard

Conditional skipping tests

Open schmidtandreas opened this issue 1 year ago • 0 comments

Hi! Is it possible to add a mechanism (how ever it looks like) to bash_utils to skip tests if condition is not fulfilled? Maybe something like this:

skip_if "test_name" "condition_function"

If condition_function will return not successful, then the test_name will be skipped and mark as skipped.

Reason why I need this feature:

I have tests that are dependent on system environment. If I run the tests in prepared system environment all things are fine, but if somebody else want to run the tests in his system environment I want to skip critical tests to avoid false positives.

schmidtandreas avatar Feb 18 '24 13:02 schmidtandreas