From b74184d5e41d4e155a0ec0f07c92039dbebe30e2 Mon Sep 17 00:00:00 2001 From: Andreas Weber Date: Tue, 31 Oct 2023 11:05:55 +0100 Subject: [PATCH] feat: add test suites name --- src/cli/send/junitUtils.spec.ts | 10 +++++----- src/cli/send/junitUtils.ts | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cli/send/junitUtils.spec.ts b/src/cli/send/junitUtils.spec.ts index 3026c69c..367292f0 100644 --- a/src/cli/send/junitUtils.spec.ts +++ b/src/cli/send/junitUtils.spec.ts @@ -32,7 +32,7 @@ describe('transformToJunit', () => { expect(result).toBe( ` - + @@ -94,7 +94,7 @@ describe('transformToJunit', () => { expect(result).toBe( ` - + @@ -137,7 +137,7 @@ describe('transformToJunit', () => { expect(result).toBe( ` - + @@ -188,7 +188,7 @@ describe('transformToJunit', () => { expect(result).toBe( ` - + failed result @@ -232,7 +232,7 @@ describe('transformToJunit', () => { expect(result).toBe( ` - + diff --git a/src/cli/send/junitUtils.ts b/src/cli/send/junitUtils.ts index 23d8759e..f797ea24 100644 --- a/src/cli/send/junitUtils.ts +++ b/src/cli/send/junitUtils.ts @@ -20,6 +20,7 @@ export function transformToJunit(output: SendJsonOutput): string { document.appendChild(xmlNode); const root = document.createElement('testsuites'); document.appendChild(root); + root.setAttribute('name', `httpyac`); root.setAttribute('tests', `${output.summary.totalRequests}`); root.setAttribute('errors', '0'); root.setAttribute('disabled', `${output.summary.disabledRequests}`);