无法创建Jasmine并发Grunt任务
Unable to Create Jasmine Concurrent Grunt Task
我已经设置了一组tak,但在配置测试任务时遇到了问题。我已经启动并运行了Jasmine节点,我可以从命令行运行测试,但我似乎无法完成繁重的任务。
GruntFile.js:
module.exports = function(grunt) {
'use strict';
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
jitGrunt: true
});
};
aliases.yaml:(缩短为仅显示测试任务)
test:
- 'concurrent:test'
test.js
module.exports = {
jasmine: {
all: {
src: '.',
options: {
specs: ['../tests/sms/textReceiver-spec.js']
}
}
}
};
文件夹结构:
- 咕哝
- concurrent.js
- test.js
- 等等
- GruntFile.js
- 测试
- 短信
- text接收器-spec.js
- 短信
任务加载了,但它只是坐在那里,什么也没发生。没有进一步的信息,甚至没有错误。这让我觉得只是找不到我的测试文件?但我尝试过直接链接到一个文件,得到了同样的结果。
结果:
ben_cripps$grunt测试
运行"并发:测试"(并发)任务
但这就是
我假设您使用的是grunt contrib jasmine。根据他们的文档,src
属性是这样使用的(就像其他地方一样,带有通配符):
src: 'src/**/*.js'
但你是这样使用它的:
src: '.'
相关文章:
- 如何为requirejs和qunit设置grunt任务
- 不使用Grunt.initConfig()注册Grunt任务
- Grunt任务没有加载,获得无限循环
- 通过Grunt任务注入内容,具体取决于asp.net项目构建配置
- 从另一个grunt文件加载grunt任务
- Grunt任务退出,总线错误:10
- 无法创建Jasmine并发Grunt任务
- 如何在 Grunt 任务中保持服务器侦听运行
- 在另一个任务之前异步运行 grunt 任务
- 通过函数填充 Grunt 任务配置的“文件”属性
- 在 Grunt 任务中运行命令
- 创建自定义的 Grunt 任务来处理文件
- 如何在我的 Yeoman 生成器完成安装后运行 Grunt 任务
- 注册代码位于外部 JavaScript 文件中的 Grunt 任务
- 如何理解Grunt任务选项
- 使用https下载文件的Grunt任务
- 验证来自grunt任务的http响应
- 找不到Grunt任务
- 如何创建和组织配置和注册grunt任务
- Grunt任务依赖关系