DEV Community

Gokul T P
Gokul T P

Posted on

Introducing go-tprof

What it does

tprof if a test report generator for golang packages. It parses the output of go tests and generates a presentable html document.

IMAGE ALT TEXT HERE

How to use it

To execute

    go test <pkg name> -v | tprof

Eg:

    go test encoding/... -v | tprof

Visit https://github.com/gokultp/go-tprof to get tprof

Top comments (2)

Collapse
 
victoravelar profile image
Victor Avelar

GitHub logo gokultp / go-tprof

A presentable test report generator for go packages

go-tprof

Overview GoDoc Build Status Code Climate Go Report Card

IMAGE ALT TEXT HERE

Prerequisites

1. Go version >= 1.12 
2. Node.js version >= 8.0.0 (for building the UI)
3. Yarn
4. GOPATH and local bin setup (`export PATH=$PATH:$GOPATH/bin`)

Install

git clone https://github.com/gokultp/go-tprof.git
cd go-tprof
make config
make

Usage Instructions

tprof is not a replacement for go test, it just parses the results and generates reports out of it.

To execute

    go test <pkg name> -v | tprof

Eg:

    go test encoding/... -v | tprof

Features

  • Parser and reports logic.
  • HTML Page

License

MIT.




Collapse
 
gokultp profile image
Gokul T P