加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – Yeoman grunt测试模式“path_public / todo / test

发布时间:2020-12-17 10:26:11 所属栏目:安全 来源:网络整理
导读:我是自耕农工作人员的新手,所以我在主页 here的底部跟随好的教程,除了咕噜声测试之外,所有的工作都很好. 我得到一个模式path_public / todo / test / mock / ** / * .js与任何文件都不匹配,测试失败. Here是所有堆栈的要点.这里有人知道如何解决这个问题吗?
我是自耕农工作人员的新手,所以我在主页 here的底部跟随好的教程,除了咕噜声测试之外,所有的工作都很好.

我得到一个模式path_public / todo / test / mock / ** / * .js与任何文件都不匹配,测试失败.

Here是所有堆栈的要点.这里有人知道如何解决这个问题吗?

从 http://newtriks.com/2013/06/11/automating-angularjs-with-yeoman-grunt-and-bower/起

Run grunt karma grunt karma All tests pass! Chrome 27.0 (Mac):
Executed 1 of 1 SUCCESS (0.085 secs / 0.018 secs) But wait….there is a
warning: WARN [watcher]: Pattern
“/Users/newtriks/src/newtriks-dev/js/angularjs-grunt-example/test/mock//.js” does not match any file. Let’s fix this. I tend to prefer to add directories as required and for now I have no mocks so lets comment out the include. Open karma.conf.js and comment out the line with ‘test/mock//.js’. Run grunt karma again and the warning should be gone. Note: If you want to follow the same logic for karma-e2e.conf.js also this will ensure the warning is also fixed for the end-to-end tests.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读