devops: upload test-runner test results to flakiness dashboard (#12412)

Fixes #12152
This commit is contained in:
Andrey Lushnikov 2022-02-28 14:41:30 -07:00 committed by GitHub
parent 396d920145
commit f47423d315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -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()

View File

@ -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;