如何在茉莉花中排除一些规格文件? [英] How to exclude some spec files in jasmine?

查看:50
本文介绍了如何在茉莉花中排除一些规格文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以排除茉莉花目录中的某些规范文件? 例如,我要从Foo文件夹中排除扩展文件夹中的所有规格.

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
│   ├── sub
|   |    |
|   |    |--extended
│   │         ├── a-spec.js
|   |         ├── e-spec.js
│   ├── b-spec.js
│   ├── c-spec.js
│   ├── d-spec.js
└── 
```

我尝试使用jasmin.json.但这不起作用.

I have tried with folowing jasmin.json.But this is not working.

    {
    "spec_dir": "Foo/",
    "spec_files": [
        "**/*[sS]pec.js",
        "!**/extended/*.js"
    ]
}

推荐答案

您可以在jasmine上获得有关升级此问题的信息 github问题.

You can get information regrading this issue on jasmine github issue.

这篇关于如何在茉莉花中排除一些规格文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆