[英]How to exclude some spec files in jasmine?
Is there any way to exclude some spec files with in a directory in jasmine?有没有办法在茉莉花的目录中排除一些规范文件? For example, I want to exclude all spec in the extended folder from Foo folder.
例如,我想从 Foo 文件夹中排除扩展文件夹中的所有规范。
```
├── Foo
│ ├── sub
| | |
| | |--extended
│ │ ├── a-spec.js
| | ├── e-spec.js
│ ├── b-spec.js
│ ├── c-spec.js
│ ├── d-spec.js
└──
```
I have tried with folowing jasmin.json.But this is not working.我试过跟随 jasmin.json。但这不起作用。
{
"spec_dir": "Foo/",
"spec_files": [
"**/*[sS]pec.js",
"!**/extended/*.js"
]
}
您可以在 jasmine github issue<\/a>上获得重新分级此问题的信息。
{
spec_files: [
'**/*spec.js',
'!foo/**/*.js',
'foo/really/*.js'
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.