diff --git a/dist/index.js b/dist/index.js index 10d5111..23194e9e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -381,7 +381,7 @@ class TestReporter { results.map((tr, runIndex) => { if (tr.failed === 0) return; - const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')); + const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')).slice(0, tr.path.indexOf('test/')); req.blocks.push({ type: 'section', text: { @@ -394,7 +394,7 @@ class TestReporter { tr.failedSuites.map(suite => { suite.failedGroups.map(group => { group.failedTests.map(test => { - failedTests.push(`* <${suite.link}|${test.name}>`); + failedTests.push(`- <${suite.link}|${test.name}>`); }); }); }); diff --git a/src/main.ts b/src/main.ts index 72ea555..dd86117 100644 --- a/src/main.ts +++ b/src/main.ts @@ -326,7 +326,7 @@ class TestReporter { results.map((tr, runIndex) => { if (tr.failed === 0) return - const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')) + const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')).slice(0, tr.path.indexOf('test/')) req.blocks.push({ type: 'section', @@ -341,7 +341,7 @@ class TestReporter { tr.failedSuites.map(suite => { suite.failedGroups.map(group => { group.failedTests.map(test => { - failedTests.push(`* <${suite.link}|${test.name}>`) + failedTests.push(`- <${suite.link}|${test.name}>`) }) }) })