jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
763 stars 220 forks source link

zsh: command not found: go-junit-report #160

Open Parthiba-Hazra opened 1 year ago

Parthiba-Hazra commented 1 year ago

Ran the command - go install github.com/jstemmer/go-junit-report/v2@latest test go-junit-report - go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml output - zsh: command not found: go-junit-report I think I had to add some path in .zshrc file, but I cant understand what to add.. Screenshot from 2023-03-14 11-33-04

LRipi commented 1 year ago

What is your GOPATH? (i.e. go env GOPATH) Can you the binary in it?

Parthiba-Hazra commented 1 year ago

What is your GOPATH? (i.e. go env GOPATH) Can you the binary in it?

GOPATH - /home/username/go

qmilangowin commented 1 year ago

Getting this too now. Was working before. Now getting: /bin/bash: go-junit-report: command not found

junit-report is installed in my go/bin directory

joschi commented 6 days ago

GOPATH - /home/username/go

junit-report is installed in my go/bin directory

Is $GOPATH/bin part of your $PATH environment variable?