Testing Go CLI Apps

Post by Saul Shanabrook

go, lighting, testing

I recently started using the really great go.cli library to develop a super simple command line server in Go. When testing this server, however, I needed to figure out a way of starting and stopping it on demand. It is very easy to start a CLI app, just call…

Testing for Zombie Goroutines

Post by Saul Shanabrook

go, lighting, testing

Recently I have been working on some stage lighting control softeware, written in Go. In my tests, I spin up a websocket TCP server plus some workers that output lighting levels continously. I want to not only test to make sure that those parts work, but they also are stopped…