#!/usr/bin/env bats load test_helper @test "testing" { result="$(echo 2+2 | bc)" [ "$result" -eq 4 ] } @test "is successfull" { run echo 'hello' assert_success $'hello' } @test "produces an error" { run rm blah assert_failure $'rm: blah: No such file or directory' }