2016-07-21 32 views
0

从持续集成的角度来看,我更愿意使用本地安装而不是全局文档作为当前文档的状态。我搜索了一会儿,看了一下“ember test --help”的api,我看不到明确指出phantomjs位置的能力--earer希望它能在全球范围内使用。使用本地安装的phantomjs进行“余烬测试”

是否有可能运行类似“ember test --phantomjs node_modules \ phantomjs \ bin \ phantomjs”?或者修改testem.js来声明phantomjs的位置?

回答

2

您可以加入到路径它们在package.json

所以因此你的package.json有

"scripts": { 
    "start": "ember server", 
    "build": "ember build", 
    "test": "ember test", 

npm test将运行ember test但里面的脚本部分命令这种情况下node_modules/.bin运行与npm test测试对于该运行,它会将node_modules/.bin添加到PATH中。所以你可以保留幻影在当地的依赖

相关问题