Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Reports #30

Open
Valery-Lapurin opened this issue Mar 6, 2019 · 0 comments
Open

Test Reports #30

Valery-Lapurin opened this issue Mar 6, 2019 · 0 comments

Comments

@Valery-Lapurin
Copy link

Valery-Lapurin commented Mar 6, 2019

A developer can download the following tools:

RUN go get -u github.com/jstemmer/go-junit-report
RUN go get -u github.com/axw/gocov/gocov
RUN go get -u github.com/AlekSi/gocov-xml
RUN go get -u gopkg.in/matm/v1/gocov-html

And then he can call commands:

RUN go test ./... -v 2>&1 | go-junit-report > report.xml
RUN gocov test ./... | gocov-xml > coverage.xml
RUN gocov test ./... | gocov-html > index.html
  1. go-junit-report - generates test report in JUnit format
  2. gocov - generates test coverage report in cobertura format
    2.1) gocov-xml - generates output in xml format
    2.1) gocov-html - generates output in html format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant