Skip to content

Test Reports #30

@Valery-Lapurin

Description

@Valery-Lapurin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions