forked from janisz/junit2jira
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup bad golang test and add fallbacks for empty fields
- Loading branch information
Showing
8 changed files
with
546 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites tests="2" errors="1"> | ||
<testsuite name="github.com/stackrox/rox/pkg/grpc" tests="1" failures="0" errors="1" id="0" hostname="test" time="28.018" timestamp="2024-12-05T18:53:27+01:00"> | ||
<testcase name="Test_APIServerSuite/Test_TwoTestsStartingAPIs" classname="github.com/stackrox/rox/pkg/grpc" time="0.000"> | ||
<error message="No test result found"><![CDATA[ testutils.go:94: Stopping [2] listeners | ||
testutils.go:87: [http handler listener: stopped] | ||
testutils.go:87: [gRPC server listener: not stopped in loop. Comparing with grpcServer pointer with listener.srv pointer (0xc002ab2e00 : 0xc002ab2e00)] | ||
server_test.go:229: ----------------------------------------------- | ||
server_test.go:230: STACK TRACE INFO | ||
server_test.go:231: ----------------------------------------------- | ||
]]></error> | ||
</testcase> | ||
</testsuite> | ||
<testsuite name="" tests="1" failures="0" errors="0" id="1" hostname="test" time="0.000" timestamp="2024-12-05T18:53:27+01:00"> | ||
<testcase name="TestLogInternalErrorInterceptor" classname="github.com/stackrox/rox/pkg/grpc/authz/user" time="0.000"></testcase> | ||
</testsuite> | ||
</testsuites> |
19 changes: 19 additions & 0 deletions
19
cmd/junit2jira/testdata/jira/csv/golang-junit-report2-bad.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites tests="3" errors="3"> | ||
<testsuite name="runtime.MemStats" tests="1" failures="0" errors="1" id="0" hostname="test" time="0.000" timestamp="2024-12-05T18:53:27+01:00"> | ||
<testcase name="" classname="runtime.MemStats" time="0.000"> | ||
<error message="Build error"><![CDATA[# Alloc = 63549840 | ||
# TotalAlloc = 140555368 | ||
# Sys = 91578648 | ||
# Lookups = 0 | ||
# Mallocs = 970690 | ||
# Frees = 649401]]></error> | ||
</testcase> | ||
</testsuite> | ||
<testsuite name="" tests="1" failures="0" errors="1" id="1" hostname="test" time="0.000" timestamp="2024-12-05T18:53:27+01:00"> | ||
<testcase name="TestNoClassname" classname="" time="0.000"></testcase> | ||
</testsuite> | ||
<testsuite name="" tests="1" failures="0" errors="1" id="2" hostname="test" time="0.000" timestamp="2024-12-05T18:53:27+01:00"> | ||
<testcase name="" classname="TestNoName" time="0.000"></testcase> | ||
</testsuite> | ||
</testsuites> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.