From 41efe7ebebe7ef156ef46f6b0acf50ec0f10315b Mon Sep 17 00:00:00 2001 From: Maciej Bartoszek <73238031+mbartoszek-lawlogix@users.noreply.github.com> Date: Wed, 12 Apr 2023 16:35:02 +0200 Subject: [PATCH] fix: get proper suite name for mochawesome (#37) --- src/parsers/mochawesome-json/mochawesome-json-parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers/mochawesome-json/mochawesome-json-parser.ts b/src/parsers/mochawesome-json/mochawesome-json-parser.ts index cebe925..475f47a 100644 --- a/src/parsers/mochawesome-json/mochawesome-json-parser.ts +++ b/src/parsers/mochawesome-json/mochawesome-json-parser.ts @@ -114,7 +114,7 @@ export class MochawesomeJsonParser implements TestParser { // Process tests that are in a suite if (suites?.length > 0) { for (const suite of suites) { - processNestedSuites(suite, 0, filePath ? filePath : result?.title) + processNestedSuites(suite, 0, filePath ? filePath : suite.title) } } }