kward / shunit2

shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to only execute specified test cases instead of all ?

BrentHuang opened this issue · comments

I want only execute specified test cases instead of all, like gtest_filter option, how to do that?

thanks very much~

For posterity, the test_runner supports running individual tests or with specific shells. Look at the source code as I've placed comments in the code for how to use it.

https://github.com/kward/shunit2/blob/master/test_runner#L15