首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用cypress-testrail-accumulative-reporter

使用cypress-testrail-accumulative-reporter
EN

Stack Overflow用户
提问于 2021-10-18 12:40:32
回答 1查看 128关注 0票数 0

我已经在我的项目中设置了cypress-testrail-accumulative-reporter。但是每次创建的testrun包含所有存在于testrail案例中的内容。我需要的是创建了只有一个回归集的测试运行。例如,我有1000个案例,其中只有10个是回归。当我进入npx cypress run测试运行时,应该只创建10个案例,并填充结果,而不是1000个。

你能帮我解决这个问题吗?

代码语言:javascript
复制
"reporter": "cypress-testrail-accumulative-reporter",
  "reporterOptions": {
  "domain": "domain",
  "username": "name",
  "password": "pass",
  "projectId": 1,
  "suiteId": 1,
  "allowFailedScreenshotUpload": true,
  "runName": "Regression"
EN

回答 1

Stack Overflow用户

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69616256

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档