mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Correct behavior for test cases with slashes
This commit is contained in:
committed by
Jozef Izso
parent
34f1c566ff
commit
a0398fb7dd
@@ -64,8 +64,9 @@ export class GolangJsonParser implements TestParser {
|
||||
}
|
||||
|
||||
let groupName: string | null
|
||||
let testName: string
|
||||
[groupName, testName] = event.Test.split('/', 2)
|
||||
let rest: string[]
|
||||
[groupName, ...rest] = event.Test.split('/')
|
||||
let testName = rest.join('/')
|
||||
if (!testName) {
|
||||
testName = groupName
|
||||
groupName = null
|
||||
|
||||
Reference in New Issue
Block a user