zoukankan      html  css  js  c++  java
  • jasmine-reporters

    /**
     * Created by Administrator on 2015/4/24.
     */
    exports.config = {
        directConnect: true,
        framework: "jasmine2",
        // Capabilities to be passed to the webdriver instance.
        capabilities: {
            'browserName': 'chrome'
        },
    
        // Spec patterns are relative to the current working directly when
        // protractor is called.
        specs: [
            'test.js'
        ],
        onPrepare:function(){
    
            require('./locator/locatorExtend.js')(protractor);
            var jasmineReporters = require('jasmine-reporters');
            var reporter = new jasmineReporters.JUnitXmlReporter({
                consolidateAll: true,
                filePrefix: 'output',
                savePath: 'e2eOutput'
            });
            jasmine.getEnv().addReporter(reporter);
        },
        // Options to be passed to Jasmine-node.
        jasmineNodeOpts: {
            showColors: true,
            defaultTimeoutInterval: 30000
        }
    };
    

      

    ps:jasmine一定要用2.0.0

    npm install --save-dev jasmine-reporters@^2.0.0

    把上面的依赖包下载到项目下面
    framework: "jasmine2",
    onPrepare: function() {
        var jasmineReporters = require('jasmine-reporters');
        jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
            consolidateAll: true,
            filePrefix: 'xmloutput',
            savePath: 'testresults'
        }));
    }
    

      

  • 相关阅读:
    PAT乙级1002. 写出这个数 (20)
    PAT乙级1001. 害死人不偿命的(3n+1)猜想 (15)
    HDU 4520 小Q系列故事——最佳裁判
    POJ 3414 Pots(BFS)
    POJ 1118 Lining Up
    POJ 2484 A Funny Game
    POJ 2231 Moo Volume
    HDU 5718 Oracle(高精度)
    FZU 1502 Letter Deletion(DP)
    HDU 1564 Play a game
  • 原文地址:https://www.cnblogs.com/lihaozhou/p/4495632.html
Copyright © 2011-2022 走看看