So this weekend I scratched a long-standing itch and whipped up
a little utility for colourising
output. It's called
ctap and is now available on
I have a bunch of processes that spit out TAP output at various points as tests are run on outputs, and having the output coloured for fast scanning is a surprisingly significant UX improvement.
utility for quite a while, and it does the job nicely.
Unfortunately, it's not packaged (afaict) on either CentOS or
Ubuntu, which means you typically have to install from source
npm, which is fine on a laptop, but a PITA on a server.
And though I'm pretty comfortable building I've always found node packages to be more bother than they're worth.
Which brings us back to ctap this weekend. Given how simple the TAP protocol is, I figured building an MVP colouriser couldn't more than an hour or two - and so it turned out.
But what's really nice is all the modern tooling that provides you with impressive boosts as you go these days. On this project that included:
nice unit tests using Go's standard test tools
automatic test runs on every commit using Github Actions, again covering Linux and Macintosh and Windows environments, and multiple versions of go
These are fun times to be a software engineer!blog comments powered by Disqus