[英]How do I exclude/include certain component.spec.ts files from running in my Jenkins build
I am trying to get my spec.ts files into sonarqube to get code coverage . 我试图将我的spec.ts文件放入sonarqube以获得代码覆盖率。 But my Jenkins build is failing because of some spec.ts files.
但是由于一些spec.ts文件,我的Jenkins构建失败了。 Is there any way to exclude these spec.ts files and only include certain files in the Jenkins build given that I cannot delete the spec.ts files from the angular package.
有没有办法排除这些spec.ts文件,只包括Jenkins构建中的某些文件,因为我无法从angular包中删除spec.ts文件。
There are various ways: 有各种方法:
tsconfig.spec.json
tsconfig.spec.json
的glob模式 describe block
change it to xdescribe
describe block
, xdescribe
其更改为xdescribe
it
change it to xit
it
更改为xit
Reading a little bit more on Jasmine will help. 阅读更多关于Jasmine的信息会有所帮助。 https://jasmine.github.io/pages/getting_started.html
https://jasmine.github.io/pages/getting_started.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.