-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9eefe9
commit 1adfbec
Showing
6 changed files
with
151 additions
and
0 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
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
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
119 changes: 119 additions & 0 deletions
119
internal/junitxml/testdata/junitxml-report-skip-empty.golden
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,119 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites name="test" tests="59" failures="13" errors="1" time="2.1"> | ||
<testsuite tests="0" failures="0" time="0.001000" name="gotest.tools/gotestsum/testjson/internal/badmain" timestamp="0001-01-01T00:00:00Z"> | ||
<properties> | ||
<property name="go.version" value="go7.7.7"></property> | ||
</properties> | ||
<testcase classname="" name="TestMain" time="0.000000"> | ||
<failure message="Failed" type="">sometimes main can exit 2
FAIL	gotest.tools/gotestsum/testjson/internal/badmain	0.001s
</failure> | ||
</testcase> | ||
</testsuite> | ||
<testsuite tests="18" failures="0" time="0.000000" name="gotest.tools/gotestsum/testjson/internal/good" timestamp="0001-01-01T00:00:00Z"> | ||
<properties> | ||
<property name="go.version" value="go7.7.7"></property> | ||
</properties> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestSkipped" time="0.000000"> | ||
<skipped message="=== RUN TestSkipped
 good_test.go:23: 
--- SKIP: TestSkipped (0.00s)
"></skipped> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestSkippedWitLog" time="0.000000"> | ||
<skipped message="=== RUN TestSkippedWitLog
 good_test.go:27: the skip message
--- SKIP: TestSkippedWitLog (0.00s)
"></skipped> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestPassed" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestPassedWithLog" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestPassedWithStdout" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestWithStderr" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/a/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/a" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/b/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/b" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/c/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/c" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/d/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess/d" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestNestedSuccess" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestParallelTheFirst" time="0.010000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestParallelTheThird" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/good" name="TestParallelTheSecond" time="0.010000"></testcase> | ||
</testsuite> | ||
<testsuite tests="12" failures="8" time="0.020000" name="gotest.tools/gotestsum/testjson/internal/parallelfails" timestamp="0001-01-01T00:00:00Z"> | ||
<properties> | ||
<property name="go.version" value="go7.7.7"></property> | ||
</properties> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestNestedParallelFailures/a" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedParallelFailures/a
=== PAUSE TestNestedParallelFailures/a
=== CONT TestNestedParallelFailures/a
 fails_test.go:50: failed sub a
 --- FAIL: TestNestedParallelFailures/a (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestNestedParallelFailures/d" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedParallelFailures/d
=== PAUSE TestNestedParallelFailures/d
=== CONT TestNestedParallelFailures/d
 fails_test.go:50: failed sub d
 --- FAIL: TestNestedParallelFailures/d (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestNestedParallelFailures/c" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedParallelFailures/c
=== PAUSE TestNestedParallelFailures/c
=== CONT TestNestedParallelFailures/c
 fails_test.go:50: failed sub c
 --- FAIL: TestNestedParallelFailures/c (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestNestedParallelFailures/b" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedParallelFailures/b
=== PAUSE TestNestedParallelFailures/b
=== CONT TestNestedParallelFailures/b
 fails_test.go:50: failed sub b
 --- FAIL: TestNestedParallelFailures/b (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestNestedParallelFailures" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedParallelFailures
--- FAIL: TestNestedParallelFailures (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestParallelTheFirst" time="0.010000"> | ||
<failure message="Failed" type="">=== RUN TestParallelTheFirst
=== PAUSE TestParallelTheFirst
=== CONT TestParallelTheFirst
 fails_test.go:29: failed the first
--- FAIL: TestParallelTheFirst (0.01s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestParallelTheThird" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestParallelTheThird
=== PAUSE TestParallelTheThird
=== CONT TestParallelTheThird
 fails_test.go:41: failed the third
--- FAIL: TestParallelTheThird (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestParallelTheSecond" time="0.010000"> | ||
<failure message="Failed" type="">=== RUN TestParallelTheSecond
=== PAUSE TestParallelTheSecond
=== CONT TestParallelTheSecond
 fails_test.go:35: failed the second
--- FAIL: TestParallelTheSecond (0.01s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestPassed" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestPassedWithLog" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestPassedWithStdout" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/parallelfails" name="TestWithStderr" time="0.000000"></testcase> | ||
</testsuite> | ||
<testsuite tests="29" failures="4" time="0.020000" name="gotest.tools/gotestsum/testjson/internal/withfails" timestamp="0001-01-01T00:00:00Z"> | ||
<properties> | ||
<property name="go.version" value="go7.7.7"></property> | ||
</properties> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestFailed" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestFailed
 fails_test.go:34: this failed
--- FAIL: TestFailed (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestFailedWithStderr" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestFailedWithStderr
this is stderr
 fails_test.go:43: also failed
--- FAIL: TestFailedWithStderr (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/c" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedWithFailure/c
 fails_test.go:65: failed
 --- FAIL: TestNestedWithFailure/c (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure" time="0.000000"> | ||
<failure message="Failed" type="">=== RUN TestNestedWithFailure
--- FAIL: TestNestedWithFailure (0.00s)
</failure> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestSkipped" time="0.000000"> | ||
<skipped message="=== RUN TestSkipped
 fails_test.go:26: 
--- SKIP: TestSkipped (0.00s)
"></skipped> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestSkippedWitLog" time="0.000000"> | ||
<skipped message="=== RUN TestSkippedWitLog
 fails_test.go:30: the skip message
--- SKIP: TestSkippedWitLog (0.00s)
"></skipped> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestTimeout" time="0.000000"> | ||
<skipped message="=== RUN TestTimeout
 timeout_test.go:13: skipping slow test
--- SKIP: TestTimeout (0.00s)
"></skipped> | ||
</testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestPassed" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestPassedWithLog" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestPassedWithStdout" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestWithStderr" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/a/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/a" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/b/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/b" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/d/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedWithFailure/d" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/a/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/a" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/b/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/b" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/c/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/c" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/d/sub" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess/d" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestNestedSuccess" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestParallelTheFirst" time="0.010000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestParallelTheThird" time="0.000000"></testcase> | ||
<testcase classname="gotest.tools/gotestsum/testjson/internal/withfails" name="TestParallelTheSecond" time="0.010000"></testcase> | ||
</testsuite> | ||
</testsuites> |