Hi, I’m Erika Rowland (a.k.a. erikareads). Hi, I’m Erika. I’m an Ops-shaped Software Engineer, Toolmaker, and Resilience Engineering fan. I like Elixir and Gleam, Reading, and Design. She/Her. Constellation Webring Published on

fhtagn

fhtagn is a CLI tool for testing command-line programs.

If the test succeeds it exits silently with code 0. But if the test fails, fhtagn will output a diff between the expected output and the actual output.

fhtagn example gif

Syntax

$ command to be run
| success output
@ expected error
? expected exit code

Notes

The script uses /usr/bin/awk which is not where awk is located on NixOS.

The workaround is a script that calls

awk -f fhtagn.awk

since that will find the PATH version of awk.


Constellation Webring