Checksum / critic.sh

Dead simple testing framework for Bash with coverage reporting
MIT License
455 stars 11 forks source link

skip/only support for suites/tests #7

Closed Checksum closed 4 years ago

Checksum commented 4 years ago

Would be great to have a way to support skipping/running only certain test suites/tests. This will be tricky since _describe and _test are run immediately. I can think of two options:

  1. CRITIC_SUITE_ONLY, CRITIC_SUITE_SKIP for test suites
  2. _only, _skip function to wrap tests
Checksum commented 4 years ago

_describe_only and _test_only have been merged as a part of #9.

Checksum commented 4 years ago

_describe_only and _test_only aren't really accurate as we cannot determine the suite/test to run without an additional pass. Hence, those have been removed. In its place, we now have _describe_skip and _test_skip which do work.