mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
meer beter
This commit is contained in:
parent
cb25e45d8e
commit
8cdc3bbfe6
2 changed files with 4 additions and 4 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
|
@ -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}>`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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}>`)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue