[英]How to run a multiple .spec.ts file in an angular-cli project?
I have the multiple spec.ts file path like this "src/app/app-routing/app-routing.module.spec.ts" "src/app/modules/dashboard/components/bill/gst-bill.component.html"
我有多个 spec.ts 文件路径,例如
"src/app/app-routing/app-routing.module.spec.ts" "src/app/modules/dashboard/components/bill/gst-bill.component.html"
I want to run the test case for this spec.ts files, only using angular-cli in a single command.我想为此 spec.ts 文件运行测试用例,仅在单个命令中使用 angular-cli。 Is this possible?
这可能吗?
Instead changine the path with test.ts file we can add the " f " before describe block with the spec.ts files that alone you want to run as fdescribe and then try to run,我们可以使用 test.ts 文件更改路径,我们可以在 describe 块之前添加“ f ”,其中包含您希望单独运行的 spec.ts 文件作为fdescribe然后尝试运行,
ng test
only specs with particular spec.ts file will run只有具有特定 spec.ts 文件的规范才会运行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.