jeudi 26 janvier 2017

jasmineReporters.JUnitXmlReporter doesn't generate XML Report

I have problem with JunitXML reporter. It doesn't generate xml file.
I open test by: protractor example-test.js. I haven't any errors, but file doesn't generate. Please help.

local.ts file

import { Config } from 'protractor';
  var jasmineReporters = require('jasmine-reporters');
export const ENV: Config = {
    capabilities: {
        'browserName': 'chrome',
        'version': 'ANY'
    },


    onPrepare: function() {
        jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
            consolidateAll: true,
            savePath: '/Users/test/Desktop/test2/automatic_tests/raports',
            filePrefix: 'xmloutput'
        }));
    } 


local.ts file
import { Config } from 'protractor';

import { ENV } from './local';

export const TestConfig: Config = {
    framework: 'jasmine2',
    untrackOutstandingTimeouts: true,
    jasmineNodeOpts: {
        showColors: true
    },
    allScriptsTimeout: 20000,
    noGlobals: true,
    capabilities: ENV.capabilities,
    seleniumAddress: ENV.seleniumAddress,
    baseUrl: ENV.baseUrl,
    params: ENV.params
};


test-runner.ts
import { Config } from 'protractor';
import { TestConfig } from '../../test';

export let config: Config = TestConfig;
config.specs = ['example-test.js'];

Help please

Aucun commentaire:

Enregistrer un commentaire