1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env bats load test_helper @test "invoke with target without do-file" { run redo this-does-not-exist [ $status -ne 0 ] } @test "invoke with failing do-file" { run redo fail [ $status -ne 0 ] && [ ! -e fail_result ] }