mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: upload test-runner test results to flakiness dashboard (#12412)
Fixes #12152
This commit is contained in:
parent
396d920145
commit
f47423d315
2
.github/workflows/test_test_runner.yml
vendored
2
.github/workflows/test_test_runner.yml
vendored
@ -44,3 +44,5 @@ jobs:
|
|||||||
if: matrix.os != 'ubuntu-latest'
|
if: matrix.os != 'ubuntu-latest'
|
||||||
- run: xvfb-run npm run ttest
|
- run: xvfb-run npm run ttest
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
||||||
|
if: always()
|
||||||
|
|||||||
@ -15,7 +15,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Config } from './stable-test-runner';
|
import { Config } from './stable-test-runner';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
|
const outputDir = path.join(__dirname, '..', '..', 'test-results');
|
||||||
const config: Config = {
|
const config: Config = {
|
||||||
testDir: __dirname,
|
testDir: __dirname,
|
||||||
testIgnore: ['assets/**', 'stable-test-runner/**'],
|
testIgnore: ['assets/**', 'stable-test-runner/**'],
|
||||||
@ -28,6 +30,12 @@ const config: Config = {
|
|||||||
] : [
|
] : [
|
||||||
{ name: 'playwright-test', testIgnore: ['*.visual.ts'] },
|
{ name: 'playwright-test', testIgnore: ['*.visual.ts'] },
|
||||||
],
|
],
|
||||||
|
reporter: process.env.CI ? [
|
||||||
|
['dot'],
|
||||||
|
['json', { outputFile: path.join(outputDir, 'report.json') }],
|
||||||
|
] : [
|
||||||
|
['list']
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user