Testing 使用单个命令以不同的模式运行不同的测试

Testing 使用单个命令以不同的模式运行不同的测试,testing,automation,automated-tests,e2e-testing,testcafe,Testing,Automation,Automated Tests,E2e Testing,Testcafe,我有两个命令行: testcafe firefox ./tests/desktop/*.js testcafe 'chrome:emulation:device=iphone X' ./tests/mobile/*.js 如何将这两个命令行组合成一个命令行 例如: testcafe 'chrome:emulation:device=iphone X' ./tests/mobile/*.js, firefox ./tests/desktop/*.js TestCafe演示了使用单个命令在多个浏

我有两个命令行:

testcafe firefox ./tests/desktop/*.js
testcafe 'chrome:emulation:device=iphone X' ./tests/mobile/*.js
如何将这两个命令行组合成一个命令行

例如:

testcafe 'chrome:emulation:device=iphone X' ./tests/mobile/*.js, firefox ./tests/desktop/*.js

TestCafe演示了使用单个命令在多个浏览器中运行测试,您可以尝试以下操作:

testcafe-firefox,'chrome:emulation:device=iphonex'/tests/desktop/*.js
如果要为不同的浏览器运行不同的测试,可以为每组测试启动不同的testcafe实例/测试会话:

testcafe-firefox./tests/desktop/*.js&
testcafe'chrome:emulation:device=iphonex./tests/mobile/*.js

答案的第二部分包含
&
运算符,其灵感来自有关的文档。

感谢您的回答。但我需要运行两个不同的路径:“./tests/desktop/*.js”在firefox中运行“./tests/mobile/*.js”在“chrome:emulation:device=iphonex”中运行。有可能为此编写一个命令行吗?你是对的,我在上一版本的答案中忽略了这一部分。查看更新版本。非常感谢。这很有帮助。很高兴听到它有帮助!