Jasmine reporters在angularjs端到端测试中出错

Jasmine reporters在angularjs端到端测试中出错,angularjs,protractor,jasmine-node,Angularjs,Protractor,Jasmine Node,我正在尝试将Jasmine报告与角度端到端测试相结合。但在运行测试时,我得到了以下错误(我甚至在基于windows的环境中尝试了相同的测试,并得到了相同的结果) 我已经添加了“Jasmine reporters”作为npm安装-g Jasmine reporters 我还可以看到下面的文件夹 /node-v0.10.28-linux-x86/lib/node_modules/jasmine-reporters 我的量角器配置如下: exports.config = { selen

我正在尝试将Jasmine报告与角度端到端测试相结合。但在运行测试时,我得到了以下错误(我甚至在基于windows的环境中尝试了相同的测试,并得到了相同的结果)

我已经添加了“Jasmine reporters”作为npm安装-g Jasmine reporters

我还可以看到下面的文件夹

/node-v0.10.28-linux-x86/lib/node_modules/jasmine-reporters

我的量角器配置如下:

exports.config = { seleniumAddress: 'http://172.16.136.181:4444/wd/hub', specs: [ '../e2e/*.js', ], capabilities: { 'browserName': 'chrome' }, baseUrl:'http://gdc-java64-13:9000', allScriptsTimeout: 96000, onPrepare: function() { require('jasmine-reporters'); jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter(null, true, true, 'testresults.e2e')); }, jasmineNodeOpts: { // onComplete will be called just before the driver quits. onComplete: null, // If true, display spec names. isVerbose: false, // If true, print colors to the terminal. showColors: true, // If true, include stack traces in failures. includeStackTrace: true, // Default time to wait in ms before a test fails. defaultTimeoutInterval: 30000 } }; exports.config={ 赛琳娜的裙子:'http://172.16.136.181:4444/wd/hub', 规格:[ “../e2e/*.js”, ], 能力:{ 'browserName':'chrome' }, baseUrl:'http://gdc-java64-13:9000', 所有脚本时间:96000, onPrepare:function(){ 要求(“jasmine-reporters”); jasmine.getEnv().addReporter(新的jasmine.JUnitXmlReporter(null,true,true,'testresults.e2e'); }, 茉莉花:{ //onComplete将在驱动程序退出之前调用。 onComplete:null, //如果为true,则显示等级库名称。 isVerbose:false, //如果为true,则向终端打印颜色。 showColors:对, //如果为true,则在失败中包括堆栈跟踪。 includeStackTrace:正确, //测试失败前的默认等待时间(毫秒)。 defaultTimeoutInterval:30000 } }; 有人知道吗


谢谢

在我将NODE_PATH环境变量设置为

导出节点_路径=/apps/softwares/NODE-v0.10.28-linux-x86/lib/NODE_模块


根据

您是否安装了多个节点?在my bashrc as中没有只配置一个,路径=:/apps/softwares/node-v0.10.28-linux-x86/bin此处存在配置Team City以在Windows Server 2012 R2上运行量角器测试的问题。我必须使用的路径是:C:\Users\Administrator\AppData\Roaming\npm\node\u modules。谢谢这个解决方案对我很有效 exports.config = { seleniumAddress: 'http://172.16.136.181:4444/wd/hub', specs: [ '../e2e/*.js', ], capabilities: { 'browserName': 'chrome' }, baseUrl:'http://gdc-java64-13:9000', allScriptsTimeout: 96000, onPrepare: function() { require('jasmine-reporters'); jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter(null, true, true, 'testresults.e2e')); }, jasmineNodeOpts: { // onComplete will be called just before the driver quits. onComplete: null, // If true, display spec names. isVerbose: false, // If true, print colors to the terminal. showColors: true, // If true, include stack traces in failures. includeStackTrace: true, // Default time to wait in ms before a test fails. defaultTimeoutInterval: 30000 } };