jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
764 stars 222 forks source link

go-junit-report: command not found #98

Closed Divya1388 closed 4 years ago

Divya1388 commented 4 years ago

I have a test named plan_test.go which does some terraform plan and logs resource changes, in the GOPATH. When i run: go install github.com/jstemmer/go-junit-report go test -v 2>&1 | go-junit-report > report.xml it throws an error in bash and Powershell as following

bash: go-junit-report: command not found

go-junit-report : The term 'go-junit-report' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Divya1388 commented 4 years ago

$GOPATH/bin was not added to the PATH on the Build Agent