我已经在我的项目中设置了cypress-testrail-accumulative-reporter。但是每次创建的testrun包含所有存在于testrail案例中的内容。我需要的是创建了只有一个回归集的测试运行。例如,我有1000个案例,其中只有10个是回归。当我进入npx cypress run测试运行时,应该只创建10个案例,并填充结果,而不是1000个。
你能帮我解决这个问题吗?
"reporter": "cypress-testrail-accumulative-reporter",
"reporterOptions": {
"domain": "domain",
"username": "name",
"password": "pass",
"projectId": 1,
"suiteId": 1,
"allowFailedScreenshotUpload": true,
"runName": "Regression"发布于 2021-10-18 14:01:17
默认情况下,npx cypress run将无头运行所有测试。
您必须使用npx cypress run --spec "<LIST OF SPECFILES>"来执行特定的测试。
例如cypress run --spec "cypress/integration/examples/actions.spec.js,cypress/integration/examples/files.spec.js"
有关cypress run的更多详细信息,请查看https://docs.cypress.io/guides/guides/command-line#cypress-run。
https://stackoverflow.com/questions/69616256
复制相似问题