为什么PhantomJS在使用Grunt对RequireJS项目运行Jasmine测试时挂起?
我正在尝试使用本文描述的开源项目 我下载(commit ref:e7e6b15c2f)并提取包 我运行了以下命令来更新依赖项,如中所列: 一旦完成,当我运行为什么PhantomJS在使用Grunt对RequireJS项目运行Jasmine测试时挂起?,requirejs,gruntjs,jasmine,phantomjs,Requirejs,Gruntjs,Jasmine,Phantomjs,我正在尝试使用本文描述的开源项目 我下载(commit ref:e7e6b15c2f)并提取包 我运行了以下命令来更新依赖项,如中所列: 一旦完成,当我运行grunt jasminePhantomJS时,这个阶段似乎永远挂起: tom ~/_tmp/Grunt-Boilerplate-master ϟ grunt jasmine >> Local Npm module "grunt-template-jasmine-istanbul" not found. Is it install
grunt jasmine
PhantomJS时,这个阶段似乎永远挂起:
tom ~/_tmp/Grunt-Boilerplate-master ϟ grunt jasmine
>> Local Npm module "grunt-template-jasmine-istanbul" not found. Is it installed?
>> Local Npm module "grunt-template-jasmine-requirejs" not found. Is it installed?
Running "jasmine:run" (jasmine) task
Testing jasmine specs via PhantomJS
这里有什么问题?我怎样才能解决这个问题,让我可以和grunt一起经营Jasmine?
上下文 更新了
package.json
(在npm安装之后…--保存开发人员
)
PhantomJS版本:
tom ~/_tmp/Grunt-Boilerplate-master ϟ phantomjs -v
1.9.7
事实证明,对于项目,您需要运行任务grunt test
而不是grunt jasmine
,以确保连接服务器在jasmine测试之前运行
参考:
{
"name": "Integralist",
"version": "0.1.0",
"description": "This is a project set-up using Grunt to take case of some standard tasks such as: compiling AMD based modules using RequireJS, watching/compiling Sass into CSS, watching/linting JS code and some other things such as running unit tests",
"main": "Gruntfile.js",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.5.1",
"grunt-contrib-requirejs": "~0.4.4",
"grunt-contrib-sass": "~0.7.3",
"grunt-contrib-imagemin": "~0.7.1",
"grunt-contrib-htmlmin": "~0.3.0",
"grunt-contrib-jasmine": "~0.7.0",
"grunt-template-jasmine-istanbul": "~0.3.0",
"grunt-template-jasmine-requirejs": "~0.2.0",
"grunt-contrib-connect": "~0.8.0",
"load-grunt-tasks": "~0.6.0",
"time-grunt": "~0.4.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@github.com:Integralist/Grunt-Boilerplate.git"
},
"keywords": [
"Grunt",
"JavaScript"
],
"author": "Mark McDonnell",
"license": "MIT"
}
tom ~/_tmp/Grunt-Boilerplate-master ϟ phantomjs -v
1.9.7