Skip to content

Commit

Permalink
add number of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Feb 15, 2020
1 parent c3c4e7e commit d58adcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type DisplayContent struct {
// ShortSummary returns only test names without logs
func (c DisplayContent) ShortSummary() ([]byte, error) {
type shortSummary struct {
NumberOfTests int
NumberOfFail int
NumberOfPass int
NumberOfSkip int
Expand All @@ -46,6 +47,7 @@ func (c DisplayContent) ShortSummary() ([]byte, error) {
}

}
ss.NumberOfTests = ss.NumberOfFail + ss.NumberOfPass + ss.NumberOfSkip
ss.Detail = c.Detail
ss.GopoghVersion = Version
ss.GopoghBuild = Build
Expand Down
4 changes: 2 additions & 2 deletions run_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ COMMIT=cd7cac61d3f8df1026f6b4a2689b362e132dfe4b

${DOCKER_BIN} run --mount type=bind,source="${JSON_OUT}",target=/tmp/out.json \
--mount type=bind,source="${TEST_INPUT}",target=/tmp/log.txt \
-i medyagh/gopogh:v0.0.13 \
-i medyagh/gopogh:v0.1.14 \
sh -c "go tool test2json -t < /tmp/log.txt > /tmp/out.json" || true


set +ex
${DOCKER_BIN} run --rm --mount type=bind,source=${JSON_OUT},target=/tmp/log.json \
--mount type=bind,source="${HTML_OUT}",target=/tmp/log.html \
-i medyagh/gopogh:v0.0.13 sh -c \
-i medyagh/gopogh:v0.1.14 sh -c \
"/gopogh -in /tmp/log.json -out /tmp/log.html -name "${JOB_NAME}" -pr ${MINIKUBE_LOCATION} -repo github.com/kubernetes/minikube/ -details ${COMMIT}" || true

0 comments on commit d58adcf

Please sign in to comment.