Angularjs   发布时间:2022-04-20  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了AngularJS – Karma(e2e):执行0 of 0 ERROR大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我遇到了一个问题,我有一段时间无法解决这个问题,并且因为我不知道自己做错了什么而感到非常沮丧. :) 任何帮助深表感谢.我也在我的应用程序中使用requirejs.这基本上就是我想要建立的; https://github.com/Cengizism/base

当我尝试开始我的e2e测试时,我在控制台上得到了这个;

INFO [karma]: Karma v0.10.0 server started at http://localhost:8080/_karma_/
INFO [launcher]: StarTing browser Chrome
INFO [Chrome 28.0.1500 (Mac OS X 10.8.4)]: Connected on socket id n-0AVRliCogs2nWBfgDz
Chrome 28.0.1500 (Mac OS X 10.8.4): Executed 0 of 0 ERROR (0.208 secs / 0 secs)

我的配置文件如下所示;

@H_59_3@module.exports = function(karma) { 'use Strict'; karma.set({ frameworks: ['jasmine','ng-scenario'],files: [ 'app/vendors/angular-scenario/angular-scenario.js','test/e2e/*.js' ],basePath: '',exclude: [],reporters: ['progress'],port: 8080,runnerPort: 9100,colors: true,logLevel: karma.LOG_INFO,autoWatch: true,browsers: ['Chrome'],captureTimeout: 5000,singleRun: false,proxies: { '/': 'http://localhost:9000/' },urlRoot: '/_karma_/',plugins: [ 'karma-jasmine','karma-ng-scenario','karma-chrome-launcher','karma-firefox-launcher','karma-phantomjs-launcher' ] }); };

最后是spec文件;

describe('Simple E2e Test',function()
{
    it('Should open the front page and check',function()
    {
        browser().navigateTo('/#/partial1');

        sleep(1);

        expect(element('#test').html()).toEqual('Hi testuser1');
    });
});
也许这可以帮助你:

资料来源:https://github.com/angular/angular-phonecat/issues/71

大佬总结

以上是大佬教程为你收集整理的AngularJS – Karma(e2e):执行0 of 0 ERROR全部内容,希望文章能够帮你解决AngularJS – Karma(e2e):执行0 of 0 ERROR所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。