Skip to content

Commit

Permalink
Skip testify sute
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkDrim committed Jun 27, 2024
1 parent ed4989c commit e23383e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.21.5
ARG GO_VERSION=1.22.4

FROM golang:${GO_VERSION}-alpine

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LIN_DIR := release_builds/linux-amd64/
MAC_DIR := release_builds/darwin-amd64/
WIN_DIR := release_builds/windows-amd64/

GO_VERSION = 1.21.5
GO_VERSION = 1.22.4

.PHONY: help
help: ## List of available commands
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The original version of the library has not been supported for more than three y
- ability to read test results from file (-i option)
- additional logging: errors with additional context are now printed to stdout
- ❗️support build tags (original version does not support build tags and returns an error: exit status 1) (-b option)
- skip [testify Suite](https://github.com/stretchr/testify?tab=readme-ov-file#suite-package) in results

## Installation

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/DarkDrim/go-test-report

go 1.21
go 1.22

require (
github.com/spf13/cobra v1.8.0
Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ func generateReport(tmplData *templateData, allTests map[string]*testStatus, tes
}
for _, test := range tests {
status := allTests[test.key]
if strings.HasSuffix(status.TestName, "TestSuite") {
continue // skip testify Suite
}

if tmplData.groupTestsByPackage {
if tgPackage != "" && status.Package != tgPackage {
tgID++
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const version = "1.5.0"
const version = "1.6.0"

0 comments on commit e23383e

Please sign in to comment.