meer beter

This commit is contained in:
A.J. Kaptijn 2024-03-21 10:59:55 +01:00
parent cb25e45d8e
commit 8cdc3bbfe6
2 changed files with 4 additions and 4 deletions

4
dist/index.js generated vendored
View file

@ -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}>`);
});
});
});

View file

@ -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}>`)
})
})
})