go2xunit icon indicating copy to clipboard operation
go2xunit copied to clipboard

same name suite to xml is disorder

Open xuke8 opened this issue 6 years ago • 4 comments

the input : START: .../vol_read_check_md5.go:27: ReadAndCheckMd5.SetUpSuite add md5map:volkey:[vol1] md5map:[[19a539524d5ac75f3e29ac969c352abf 797addd2e79e583c91109e40b1598be7 797addd2e79e583c91109e40b1598be7]] PASS: .../vol_read_check_md5.go:27: ReadAndCheckMd5.SetUpSuite 37.806s

START: .../vol_read_check_md5.go:54: ReadAndCheckMd5.TestCheckMd5 check obj=>key:[vol1],seq:[3] md5 check array:[[797addd2e79e583c91109e40b1598be7]] check obj=>key:[vol1],seq:[2] md5 check array:[[797addd2e79e583c91109e40b1598be7 797addd2e79e583c91109e40b1598be7]] checkarr[0]:797addd2e79e583c91109e40b1598be7 =? checkarr[1]:797addd2e79e583c91109e40b1598be7 PASS: .../vol_read_check_md5.go:54: ReadAndCheckMd5.TestCheckMd5 0.000s

START: .../vol_read_check_md5.go:50: ReadAndCheckMd5.TearDownSuite PASS: .../vol_read_check_md5.go:50: ReadAndCheckMd5.TearDownSuite 0.000s

output :

</testcase>
<testcase classname="ReadAndCheckMd5" name="TestCheckMd5" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="TearDownSuite" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="SetUpSuite" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="TestCheckMd5" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="TearDownSuite" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="SetUpSuite" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="TestCheckMd5" time="0.000">

</testcase>
<testcase classname="ReadAndCheckMd5" name="TearDownSuite" time="0.000">

</testcase>

xuke8 avatar Apr 28 '19 09:04 xuke8

Thanks for reporting, I'll have a look this week.

tebeka avatar Apr 29 '19 04:04 tebeka

in lib\parsers.go ParseGocheck if suite == nil || suite.Name != suiteName || tokens[3] == "SetUpSuite" (about L110)

xuke8 avatar Apr 29 '19 05:04 xuke8

Thanks. Can you provide a complete output example? When run the example you pasted I get:

$ cat out.txt| ./go2xunit
error: no tests found

tebeka avatar May 05 '19 03:05 tebeka

发件人: Miki Tebeka [email protected] 发送时间: 2019年5月5日 11:45 收件人: tebeka/go2xunit [email protected] 抄送: 许珂 [email protected]; Author [email protected] 主题: Re: [tebeka/go2xunit] same name suite to xml is disorder (#67) 重要性: 高

Thanks. Can you provide a complete output example? When run the example you pasted I get:

$ cat out.txt| ./go2xunit

error: no tests found

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/tebeka/go2xunit/issues/67#issuecomment-489386730, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJMSDO2K27UMOIOEJYO5JSDPTZJ4TANCNFSM4HI6D6WA.

xuke8 avatar May 05 '19 04:05 xuke8