File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -259,12 +259,12 @@ jobs:
259259 ls -R
260260 - name : Build demo
261261 run : yarn build-demo
262- - name : Integration tests (core)
263- run : yarn test-playwright-${{ matrix.browser }} --forbid-only --workers 4 --suite=core
262+ - name : Integration tests (core) # Tests use 50% workers to reduce flakiness
263+ run : yarn test-playwright-${{ matrix.browser }} --workers=50% --forbid-only --suite=core
264264 - name : Integration tests (xterm-addon-canvas)
265- run : yarn test-playwright-${{ matrix.browser }} --forbid-only --workers 4 --suite=xterm-addon-canvas
265+ run : yarn test-playwright-${{ matrix.browser }} --workers=50% --forbid-only --suite=xterm-addon-canvas
266266 - name : Integration tests (xterm-addon-webgl)
267- run : yarn test-playwright-${{ matrix.browser }} --forbid-only --workers 4 --suite=xterm-addon-webgl
267+ run : yarn test-playwright-${{ matrix.browser }} --workers=50% --forbid-only --suite=xterm-addon-webgl
268268
269269 test-api :
270270 needs : build
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function npmBinScript(script) {
3535async function run ( ) {
3636 for ( const config of configs ) {
3737 const command = npmBinScript ( 'playwright' ) ;
38- const args = [ 'test' , '-c' , config . path , ...argv . slice ( 2 ) ] ;
38+ const args = [ 'test' , '-c' , config . path , ...argv ] ;
3939 console . log ( `Running suite \x1b[1;34m${ config . name } ...\x1b[0m` ) ;
4040 console . log ( `\n\x1b[32m${ command } \x1b[0m` , args ) ;
4141 const run = cp . spawnSync ( command , args , {
Original file line number Diff line number Diff line change 3838 "test-api-chromium" : " node ./bin/test_api.js --browser=chromium --timeout=20000" ,
3939 "test-api-firefox" : " node ./bin/test_api.js --browser=firefox --timeout=20000" ,
4040 "test-api-webkit" : " node ./bin/test_api.js --browser=webkit --timeout=20000" ,
41- "test-playwright" : " node ./bin/test_playwright.js --workers 4 " ,
42- "test-playwright-chromium" : " node ./bin/test_playwright.js --workers 4 \" --project=Chrome Stable\" " ,
43- "test-playwright-firefox" : " node ./bin/test_playwright.js --workers 4 \" --project=Firefox Stable\" " ,
44- "test-playwright-webkit" : " node ./bin/test_playwright.js --workers 4 \" --project=WebKit\" " ,
45- "test-playwright-debug" : " node ./bin/test_playwright.js --headed --workers 1 --timeout 30000" ,
41+ "test-playwright" : " node ./bin/test_playwright.js --workers=75% " ,
42+ "test-playwright-chromium" : " node ./bin/test_playwright.js --workers=75% \" --project=Chrome Stable\" " ,
43+ "test-playwright-firefox" : " node ./bin/test_playwright.js --workers=75% \" --project=Firefox Stable\" " ,
44+ "test-playwright-webkit" : " node ./bin/test_playwright.js --workers=75% \" --project=WebKit\" " ,
45+ "test-playwright-debug" : " node ./bin/test_playwright.js --workers= 1 --headed --timeout= 30000" ,
4646 "test-unit" : " node ./bin/test.js" ,
4747 "test-unit-coverage" : " node ./bin/test.js --coverage" ,
4848 "test-unit-dev" : " cross-env NODE_PATH='./out' mocha" ,
You can’t perform that action at this time.
0 commit comments