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

运行angularjs业务时出错

发布时间:2020-12-17 07:39:45 所属栏目:安全 来源:网络整理
导读:在introtokarma应用程序中,我更改了karma-e2e-config.js文件,如下所示: module.exports = function(config) { config.set({ basePath : '../',files : ['tests/e2e/**/*.js'],frameworks: ['ng-scenario'],autoWatch : false,browsers : ['Chrome'],singleR
在introtokarma应用程序中,我更改了karma-e2e-config.js文件,如下所示:
module.exports = function(config) {
  config.set({
    basePath : '../',files : ['tests/e2e/**/*.js'],frameworks: ['ng-scenario'],autoWatch : false,browsers : ['Chrome'],singleRun : true,proxies : {
        '/': 'http://localhost:8000/'
      },junitReporter : {
        outputFile: 'test_out/e2e.xml',suite: 'e2e'
      }
  });
};

运行代码时,我得到以下输出:

C:Projectintrotokarmaconfig>karma start karma-e2e.conf.js
INFO [karma]: Karma v0.10.1 server started at localhost:9877/
INFO [launcher]: Starting browser Chrome
WARN [launcher]: The path should not be quoted.
Normalized the path to C:Program Files (x86)GoogleChromeApplicationchrome.exe
INFO [Chrome 28.0.1500 (Windows 7)]: Connected on socket id pfBNNRs-3wAdgT-QsheL
Chrome 28.0.1500 (Windows 7): Executed 0 of 0 ERROR (0.207 secs / 0 secs)

对于业力v0.10.2和最新的角度测试下一个命令:

npm install -g karma-ng-scenario karma-junit-reporter

(编辑:李大同)

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

    推荐文章
      热点阅读