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) {
|
getGroups(suite) {
|
||||||
const groups = [];
|
const groups = [];
|
||||||
const returnEmpytGroups = [];
|
const returnEmpytGroups = [];
|
||||||
if (!suite.testcase)
|
if (suite.testcase.length === 0)
|
||||||
return returnEmpytGroups;
|
return returnEmpytGroups;
|
||||||
for (const tc of suite.testcase) {
|
for (const tc of suite.testcase) {
|
||||||
let grp = groups.find(g => g.describe === tc.$.classname);
|
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[] {
|
private getGroups(suite: TestSuite): TestGroupResult[] {
|
||||||
const groups: {describe: string; tests: TestCase[]}[] = []
|
const groups: {describe: string; tests: TestCase[]}[] = []
|
||||||
const returnEmpytGroups: TestGroupResult[] = [];
|
const returnEmpytGroups: TestGroupResult[] = [];
|
||||||
if (!suite.testcase) return returnEmpytGroups;
|
if (suite.testcase.length === 0) return returnEmpytGroups;
|
||||||
for (const tc of suite.testcase) {
|
for (const tc of suite.testcase) {
|
||||||
let grp = groups.find(g => g.describe === tc.$.classname)
|
let grp = groups.find(g => g.describe === tc.$.classname)
|
||||||
if (grp === undefined) {
|
if (grp === undefined) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue