Skip to content

Commit

Permalink
chore: recurring failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep committed Jul 8, 2024
1 parent 07c4bef commit 032c74a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/extensions/smart-analysis.extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class SmartAnalysisExtension extends BaseExtension {
const execution_metrics = data.execution_metrics[0];

const smart_analysis = [];
if (execution_metrics.always_failing) {
smart_analysis.push(`🔴 AF: ${execution_metrics.always_failing}`);
}
if (execution_metrics.newly_failed) {
smart_analysis.push(`⭕ NF: ${execution_metrics.newly_failed}`);
}
if (execution_metrics.always_failing) {
smart_analysis.push(`🔴 AF: ${execution_metrics.always_failing}`);
}
if (execution_metrics.recurring_failures) {
smart_analysis.push(`🔺 RF: ${execution_metrics.recurring_failures}`);
smart_analysis.push(`🟠 RF: ${execution_metrics.recurring_failures}`);
}
if (execution_metrics.flaky) {
smart_analysis.push(`🟡 FL: ${execution_metrics.flaky}`);
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/teams.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ addInteractionHandler('post test-summary with beats to teams with ai failure sum
},
{
"type": "TextBlock",
"text": "🔴 AF: 1 | ⭕ NF: 1 | 🟡 FL: 1 | 🟢 RC: 1",
"text": "⭕ NF: 1 | 🔴 AF: 1 | 🟡 FL: 1 | 🟢 RC: 1",
"wrap": true
}
],
Expand Down

0 comments on commit 032c74a

Please sign in to comment.