remove failed test count from PR description (#1326)
https://codeflash-ai.slack.com/archives/C06BVLNRVT5/p1733172907804319
This commit is contained in:
parent
0e9cbf434a
commit
6eab41b47b
1 changed files with 4 additions and 8 deletions
|
|
@ -59,19 +59,15 @@ export function buildResultTestReport(
|
|||
let status = '';
|
||||
let detailsNote = '';
|
||||
|
||||
// Determine the status based on passed and failed counts
|
||||
if (passed > 0 && failed > 0) {
|
||||
status = `✅ **${passed} Passed**, ❌ **${failed} Failed**`;
|
||||
} else if (passed > 0) {
|
||||
// Determine the status based on passed counts
|
||||
if (passed > 0) {
|
||||
status = `✅ **${passed} Passed**`;
|
||||
} else if (failed > 0) {
|
||||
status = `❌ **${failed} Failed**`;
|
||||
} else {
|
||||
status = '🔘 **None Found**';
|
||||
}
|
||||
|
||||
// If there are details, note that they are available below
|
||||
if ((passed > 0 || failed > 0) && (testType.includes('Existing') || testType.includes('Generated'))) {
|
||||
if ((passed > 0) && (testType.includes('Existing') || testType.includes('Generated'))) {
|
||||
detailsNote = 'See below';
|
||||
} else {
|
||||
detailsNote = '';
|
||||
|
|
@ -86,7 +82,7 @@ export function buildResultTestReport(
|
|||
// Add detailed test outputs below the table
|
||||
for (const [testType, { passed = 0, failed = 0 }] of Object.entries(reportTableDict)) {
|
||||
// Only include details for Existing and Generated tests with results
|
||||
if ((passed > 0 || failed > 0) && (testType.includes('Existing') || testType.includes('Generated'))) {
|
||||
if ((passed > 0) && (testType.includes('Existing') || testType.includes('Generated'))) {
|
||||
// Add a heading for the test type details
|
||||
reportTableMd += `#### ${testType} Details\n\n`;
|
||||
reportTableMd += `<details>\n`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue