bash_unit
bash_unit copied to clipboard
Conditional skipping tests
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.