From cb7d9fca4cdecba5c8f542fa501ab68d20f24121 Mon Sep 17 00:00:00 2001 From: Matthew Thomas Date: Thu, 31 Oct 2024 22:32:39 +0000 Subject: [PATCH] chore: minor amends --- .github/workflows/main.yaml | 4 ++-- src/views/flaky-rate.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 03e1b25d..06293959 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -32,7 +32,7 @@ jobs: - name: Test failed run: node dist/index.js failed ctrf-reports/ctrf-report.json --annotate false - name: Test failed rate - run: node dist/index.js failed-rate ctrf-reports/ctrf-report.json --annotate false + run: node dist/index.js failed-rate ctrf-reports/ctrf-report.json --annotate false --title "Failed rate" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Test failed folded @@ -40,7 +40,7 @@ jobs: - name: Test flaky run: node dist/index.js flaky ctrf-reports/ctrf-report.json --annotate false - name: Test flaky rate - run: node dist/index.js flaky-rate ctrf-reports/ctrf-report.json --annotate false + run: node dist/index.js flaky-rate ctrf-reports/ctrf-report.json --annotate false --title "Flaky rate" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Test ai diff --git a/src/views/flaky-rate.ts b/src/views/flaky-rate.ts index f833a4e3..6c323a56 100644 --- a/src/views/flaky-rate.ts +++ b/src/views/flaky-rate.ts @@ -112,7 +112,7 @@ export async function generateFlakyRateSummary( const overallFlakeRate = totalAttemptsAllTests > 0 ? (totalFlakesAllTests / totalAttemptsAllTests) * 100 : 0 const overallFlakeRateFormatted = overallFlakeRate.toFixed(2) - const overallFlakeRateMessage = `**Overall Flake Rate:** ${overallFlakeRateFormatted}%` + const overallFlakeRateMessage = `**Overall Flaky Rate:** ${overallFlakeRateFormatted}%` const flakyTestArrayNonZero = flakyTestArray.filter( (data) => data.flakeRate > 0