File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " testsolar-oss-playwright" ,
3- "version" : " 0.2.17 " ,
3+ "version" : " 0.2.18 " ,
44 "description" : " TestSolar support for playwright tool" ,
55 "main" : " main.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -371,16 +371,16 @@ export function generateCommands(
371371 if ( useEnvJsonFile ) {
372372 // 使用环境变量设置 JSON 输出
373373 if ( testCases . length === 0 ) {
374- command = `export NO_COLOR=1 && export PLAYWRIGHT_JSON_OUTPUT_NAME=${ jsonName } && npx playwright test --reporter=json ${ traceOption } ${ extraArgs } ` ;
374+ command = `export PLAYWRIGHT_JSON_OUTPUT_NAME=${ jsonName } && npx playwright test --reporter=json ${ traceOption } ${ extraArgs } ` ;
375375 } else {
376- command = `export NO_COLOR=1 && export PLAYWRIGHT_JSON_OUTPUT_NAME=${ jsonName } && npx playwright test ${ casePath } ${ grepPattern } --reporter=json ${ traceOption } ${ extraArgs } ` ;
376+ command = `export PLAYWRIGHT_JSON_OUTPUT_NAME=${ jsonName } && npx playwright test ${ casePath } ${ grepPattern } --reporter=json ${ traceOption } ${ extraArgs } ` ;
377377 }
378378 } else {
379379 // 使用原始的重定向方式
380380 if ( testCases . length === 0 ) {
381- command = `export NO_COLOR=1 && npx playwright test --reporter=json ${ traceOption } ${ extraArgs } > ${ jsonName } ` ;
381+ command = `npx playwright test --reporter=json ${ traceOption } ${ extraArgs } > ${ jsonName } ` ;
382382 } else {
383- command = `export NO_COLOR=1 && npx playwright test ${ casePath } ${ grepPattern } --reporter=json ${ traceOption } ${ extraArgs } > ${ jsonName } ` ;
383+ command = `npx playwright test ${ casePath } ${ grepPattern } --reporter=json ${ traceOption } ${ extraArgs } > ${ jsonName } ` ;
384384 }
385385 }
386386
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ schemaVersion: 1.0
22name : playwright
33nameZh : Playwright自动化测试
44lang : javascript
5- version : ' 0.2.17 '
5+ version : ' 0.2.18 '
66defaultBaseImage : node:18
77langType : INTERPRETED
88description : |-
You can’t perform that action at this time.
0 commit comments