prism stable

Make your unit testing a bit easier on the eyes.

Welcome!

prism makes your unit testing a bit easier on the eyes. Anywhere you’d run go test, use prism instead.

Installation

GitHub Releases

  • Go to the Releases tab of the repo here
  • Download the latest archive for your OS/architecture
  • Extract it and place the resulting binary on your $PATH and ensure it is executable
cd ~/Downloads # Assuming you downloaded it here
tar -xvf prism_[whatever].tar.gz # x: Extract; v: Verbose output; f: Specify filename
chmod +x prism # Make file executable
mv prism [somewhere on your $PATH] # Move the file to somewhere on your path for easy execution

Homebrew

Ensure you have brew installed. Then, run the following:

brew install --cask daltonsw/tap/prism

Go

Ensure you have Go installed, and your Go install location on your $PATH. Then, run the following:

go install go.dalton.dog/prism@latest

Usage

Just run prism in your module directory. Anywhere you’d run go test, use prism instead. That’s it!