Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 894 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 894 Bytes

Unit testing an AWS CLI script in shUnit2/Placebo

Build Status

This is code that goes with my blog posts here and here.

Usage

Clone this repo:

$ git clone https://github.com/alexharv074/shunit2_example.git

Install patched shunit2 & Placebo:

$ curl -o /usr/local/bin/shunit2 \
    https://raw.githubusercontent.com/kward/shunit2/07bb3292048a4982aad7247bdd7890f2bf532ece/shunit2
$ curl -o /usr/local/bin/placebo \
    https://raw.githubusercontent.com/alexharv074/bash_placebo/master/placebo

Run the tests:

$ cd shunit2_example/
$ make