mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 13:08:07 -05:00
parent
dde9ef5310
commit
014828bef4
@ -69,6 +69,10 @@ func (t *Testsuite) AddTestcase(tc Testcase) {
|
|||||||
if tc.Failure != nil {
|
if tc.Failure != nil {
|
||||||
t.Failures += 1
|
t.Failures += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tc.Skipped != nil {
|
||||||
|
t.Skipped += 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ts *Testsuite) SetTimestamp(t time.Time) {
|
func (ts *Testsuite) SetTimestamp(t time.Time) {
|
||||||
|
4
testdata/03-report.xml
vendored
4
testdata/03-report.xml
vendored
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<testsuites tests="2">
|
<testsuites tests="2" skipped="1">
|
||||||
<testsuite tests="2" failures="0" errors="0" time="0.150" name="package/name" hostname="hostname" timestamp="2022-01-01T00:00:00Z">
|
<testsuite tests="2" failures="0" errors="0" skipped="1" time="0.150" name="package/name" hostname="hostname" timestamp="2022-01-01T00:00:00Z">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="go.version" value="1.0"></property>
|
<property name="go.version" value="1.0"></property>
|
||||||
</properties>
|
</properties>
|
||||||
|
4
testdata/12-report.xml
vendored
4
testdata/12-report.xml
vendored
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<testsuites tests="18" failures="3">
|
<testsuites tests="18" failures="3" skipped="2">
|
||||||
<testsuite tests="18" failures="3" errors="0" skipped="0" time="0.050" name="package/name" hostname="hostname" timestamp="2022-01-01T00:00:00Z">
|
<testsuite tests="18" failures="3" errors="0" skipped="2" time="0.050" name="package/name" hostname="hostname" timestamp="2022-01-01T00:00:00Z">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="go.version" value="1.0"></property>
|
<property name="go.version" value="1.0"></property>
|
||||||
</properties>
|
</properties>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user