mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Update the validation
This commit is contained in:
parent
39eab1c454
commit
8079cf8926
3 changed files with 3 additions and 3 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -945,7 +945,7 @@ class GoJunitParser {
|
|||
getGroups(suite) {
|
||||
const groups = [];
|
||||
const returnEmpytGroups = [];
|
||||
if (!suite.testcase)
|
||||
if (suite.testcase.length === 0)
|
||||
return returnEmpytGroups;
|
||||
for (const tc of suite.testcase) {
|
||||
let grp = groups.find(g => g.describe === tc.$.classname);
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -50,7 +50,7 @@ export class GoJunitParser implements TestParser {
|
|||
private getGroups(suite: TestSuite): TestGroupResult[] {
|
||||
const groups: {describe: string; tests: TestCase[]}[] = []
|
||||
const returnEmpytGroups: TestGroupResult[] = [];
|
||||
if (!suite.testcase) return returnEmpytGroups;
|
||||
if (suite.testcase.length === 0) return returnEmpytGroups;
|
||||
for (const tc of suite.testcase) {
|
||||
let grp = groups.find(g => g.describe === tc.$.classname)
|
||||
if (grp === undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue