Unit Testing bash scripts

后端 未结 16 732
暖寄归人
暖寄归人 2020-11-30 18:51

We have a system that has some bash scripts running besides Java code. Since we are trying to Test Everything That Could Possibly Break, and those bash scripts may break, we

16条回答
  •  盖世英雄少女心
    2020-11-30 19:08

    I created shellspec because I wanted a easy-to-use and useful tool.

    It written by pure POSIX shell script. It has tested with many shells more than shunit2. It has powerful features than bats/bats-core.

    For example, support nested block, easy to mock/stub, easy to skip/pending, parameterized tests, assertion line number, execute by line number, parallel execution, random execution, TAP/JUnit formatter, coverage and CI integration, profiler and etc.

    See the demo on the project page.

    • https://github.com/shellspec/shellspec
    • https://shellspec.info/

提交回复
热议问题