简体   繁体   English

使用 cypress-testrail-accumulative-reporter

[英]Using cypress-testrail-accumulative-reporter

I've set cypress-testrail-accumulative-reporter to use on my project.我已将 cypress-testrail-accumulative-reporter 设置为在我的项目中使用。 But the testrun that is created each time contains ALL existing in testrail cases.但是每次创建的测试运行包含所有存在于 testrail 案例中。 What I need it's created test run with only a regression set.我需要它创建的测试运行只有一个回归集。 For example, I have 1000 cases and only 10 are regression.例如,我有 1000 个案例,只有 10 个是回归。 When I enter npx cypress run test run with ONLY 10 cases should be created and populated with results, not 1000.当我输入npx cypress run test run 时,只应创建 10 个案例并填充结果,而不是 1000 个。

Can you pls help me with this?你能帮我解决这个问题吗?

"reporter": "cypress-testrail-accumulative-reporter",
  "reporterOptions": {
  "domain": "domain",
  "username": "name",
  "password": "pass",
  "projectId": 1,
  "suiteId": 1,
  "allowFailedScreenshotUpload": true,
  "runName": "Regression"

By default, npx cypress run will run all tests headlessly.默认情况下, npx cypress run将无头运行所有测试。

You must use npx cypress run --spec "<LIST OF SPECFILES>" to execute your specific tests.您必须使用npx cypress run --spec "<LIST OF SPECFILES>"来执行您的特定测试。

eg cypress run --spec "cypress/integration/examples/actions.spec.js,cypress/integration/examples/files.spec.js"例如cypress run --spec "cypress/integration/examples/actions.spec.js,cypress/integration/examples/files.spec.js"

Please take a look at https://docs.cypress.io/guides/guides/command-line#cypress-run for further details about cypress run.有关 cypress run 的更多详细信息,请查看https://docs.cypress.io/guides/guides/command-line#cypress-run

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM