{"repo":"DaltonSW/prism","free":true,"listed":false,"github":"https://github.com/DaltonSW/prism","clone":"git clone https://github.com/DaltonSW/prism.git","description":"Turn raw test output into beautiful data","language":"Go","stars":108,"topics":["cli","golang","unit-testing"],"license":"MIT","category":"cli-tools","readme_excerpt":"Welcome to prism ! All I'm saying is that maybe people would be a bit more willing to write unit tests if they were prettier to look at... 💅 Make your unit testing results not only easier on the parse, but downright pleasant to look at! Prism works anywhere go test works, so it can be quickly integrated into any project using Go v1.24 or higher (that's when -json was introduced). Installation Homebrew 🍺 - Have brew installed (brew.sh) - Run the following: Go 🖥️ - Have Go - Have your Go install location on your $PATH - Run the following: 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 Usage Unit Tests Just run prism in your module directory. Anywhere you'd run go test , use prism instead. That's it! -v -- Verbose output. Includes any additional output logged during tests -f -- Failed Only. Only gives information about tests that failed --no-color OR --show-color to force showing or hiding color Anything else will be appended directly to go test -json Benchmarking The simplest usage is just prism bench . This will ignore all tests and run all benchmarks in ./... The first optional argument is a regex string and is appended to the normal -bench= flag for go test . It defaults to . The second optional argument is the path, if you want to benchmark over something other than ./... . If you want to pass a path, you MUST pass a r","default_branch":null,"files":null,"tree":[],"storefront":"/r/DaltonSW","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DaltonSW/prism/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}