Testing Scripts with bats

A test is a small script that runs yours and checks the result; bats runs a file of them, each written with @test, run and checks on $status and $output, in a fresh folder from setup, and reports each one as passed or failed, with the line that failed.

Updated

Cheat sheet for the lesson Testing Scripts with bats: A test is a small script that runs yours and checks the result; bats runs a file of them, each written with @test, run and checks on $status and $output, in a fresh folder from setup, and reports each one as passed or failed, with the line that…
Category
Bash
Level
Freelancer
Tags
assertion, bats, linux, Test Runner, unit-test, unix