admin管理员组文章数量:1289508
I want to be able to exclude particular spec files from my test runs in cypress. I guess this will be some config entered into the cypress.config.ts
file. All I have found is the excludeSpecPattern
argument but this seems to be to exclude file patterns, not specific files/folders.
I want to be able to exclude particular spec files from my test runs in cypress. I guess this will be some config entered into the cypress.config.ts
file. All I have found is the excludeSpecPattern
argument but this seems to be to exclude file patterns, not specific files/folders.
1 Answer
Reset to default 10You can use excludeSpecPattern and define exact folders or files.
excludeSpecPattern: [
'*/*/**/spec.cy.ts',
'*/**/FolderToExclude'
],
If this doesn't work, then the defined path is wrong. Maybe this link will be helpful:
https://docs.cypress.io/guides/references/configuration#excludeSpecPattern
本文标签: javascriptHow to exclude spec files from test runs in cypressStack Overflow
版权声明:本文标题:javascript - How to exclude spec files from test runs in cypress - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741454342a2379670.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论