mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
Correct behavior for test cases with slashes
This commit is contained in:
parent
34f1c566ff
commit
a0398fb7dd
7 changed files with 228 additions and 78 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue