diff --git a/.github/workflows/test_test_runner.yml b/.github/workflows/test_test_runner.yml index d9be80d073..ac47b2c97b 100644 --- a/.github/workflows/test_test_runner.yml +++ b/.github/workflows/test_test_runner.yml @@ -44,3 +44,5 @@ jobs: if: matrix.os != 'ubuntu-latest' - run: xvfb-run npm run ttest if: matrix.os == 'ubuntu-latest' + - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json + if: always() diff --git a/tests/playwright-test/playwright-test.config.ts b/tests/playwright-test/playwright-test.config.ts index 317b286a81..4580180836 100644 --- a/tests/playwright-test/playwright-test.config.ts +++ b/tests/playwright-test/playwright-test.config.ts @@ -15,7 +15,9 @@ */ import { Config } from './stable-test-runner'; +import * as path from 'path'; +const outputDir = path.join(__dirname, '..', '..', 'test-results'); const config: Config = { testDir: __dirname, testIgnore: ['assets/**', 'stable-test-runner/**'], @@ -28,6 +30,12 @@ const config: Config = { ] : [ { name: 'playwright-test', testIgnore: ['*.visual.ts'] }, ], + reporter: process.env.CI ? [ + ['dot'], + ['json', { outputFile: path.join(outputDir, 'report.json') }], + ] : [ + ['list'] + ], }; export default config;