提交 59ce5cca 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

support Playwright and Puppeteer

上级 f76f2f89
...@@ -104,7 +104,7 @@ export const unitTestTypesDef = [ ...@@ -104,7 +104,7 @@ export const unitTestTypesDef = [
{ {
label: 'GTest', label: 'GTest',
value: 'gtest', value: 'gtest',
cmd: 'ztf gtest -p product_id ./build/bin/unit_tests --gtest_output=xml:testresults.xml', cmd: 'ztf gtest -p product_id ./build/bin/unit_tests --gtest_output=xml:testresults.xml',
}, },
{ {
label: 'QTest', label: 'QTest',
...@@ -114,22 +114,22 @@ export const unitTestTypesDef = [ ...@@ -114,22 +114,22 @@ export const unitTestTypesDef = [
{ {
label: 'CppUnit', label: 'CppUnit',
value: 'cppunit', value: 'cppunit',
cmd: ' ztf cppunit -p product_id ./MathTest', cmd: 'ztf cppunit -p product_id ./MathTest',
}, },
{ {
label: 'Cypress', label: 'Cypress',
value: 'cypress', value: 'cypress',
cmd: ' ztf cypress -p product_id --verbose yarn cypress:run --spec "cypress/integration/test/baidu.spec.js" --reporter junit --reporter-options "mochaFile=results/test_output.xml,toConsole=true"', cmd: 'ztf cypress -p product_id --verbose yarn cypress:run --spec "cypress/integration/test/baidu.spec.js" --reporter junit --reporter-options "mochaFile=results/test_output.xml,toConsole=true"',
}, },
{ {
label: 'Playwright', label: 'Playwright',
value: 'playwright', value: 'playwright',
cmd: ' ztf playwright -p product_id PLAYWRIGHT_JUNIT_OUTPUT_NAME=testresults.xml npx playwright test --project=chromium --headed --reporter=junit', cmd: 'ztf playwright -p product_id PLAYWRIGHT_JUNIT_OUTPUT_NAME=results/testresults.xml npx playwright test --project=chromium --headed --reporter=junit',
}, },
{ {
label: 'Puppeteer', label: 'Puppeteer',
value: 'puppeteer', value: 'puppeteer',
cmd: ' ztf puppeteer -p product_id mocha tests/example.js --reporter xunit --reporter-options output=results/testresults.xml -t 30000', cmd: 'ztf puppeteer -p product_id mocha tests/example.js --reporter xunit --reporter-options output=results/testresults.xml -t 30000',
}, },
] ]
......
...@@ -60,6 +60,10 @@ export const testToolMap = { ...@@ -60,6 +60,10 @@ export const testToolMap = {
robotframework: 'RobotFramework', robotframework: 'RobotFramework',
cypress: 'Cypress', cypress: 'Cypress',
playwright: 'Playwright',
puppeteer: 'Puppeteer',
autoit: 'AutoIt', autoit: 'AutoIt',
selenium: 'Selenium', selenium: 'Selenium',
appium: 'Appium', appium: 'Appium',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册