in ,

Checksum / critic.sh, Hacker News

Checksum / critic.sh, Hacker News
                    

        

Dead simple testing framework for Bash with rudimentary coverage.

asciicast )

(Requirements)

Bash v4.1

Usage

See examples / test.sh for detailed usage. To run the tests: bash examples / test.sh

Source the framework in your test file

# test-foobar.sh # Include your source files source foobar.sh # Include the framework source critic.sh # Write tests _describe foo   _test

" output should equal foo

    _assert _equals

Pass the test file as an argument

API