wdio-teamcity-reporter
Advanced tools
Comparing version 1.1.0 to 1.1.1
27
index.js
'use strict'; | ||
var _require = require('events'); | ||
var _require = require('events'), | ||
EventEmitter = _require.EventEmitter; | ||
var EventEmitter = _require.EventEmitter; | ||
var _require2 = require('./lib/message'), | ||
buildFormatter = _require2.buildFormatter, | ||
events = _require2.events; | ||
var _require2 = require('./lib/message'); | ||
var _require3 = require('lodash'), | ||
flow = _require3.flow; | ||
var buildFormatter = _require2.buildFormatter; | ||
var events = _require2.events; | ||
var _require4 = require('util'), | ||
inherits = _require4.inherits; | ||
var _require3 = require('lodash'); | ||
var flow = _require3.flow; | ||
var _require4 = require('util'); | ||
var inherits = _require4.inherits; | ||
module.exports = WdioTeamcityReporter; | ||
@@ -34,4 +29,6 @@ module.exports.reporterName = 'teamcity'; | ||
function WdioTeamcityReporter(baseReporter, wdioConf) { | ||
var reporterOptions = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
var reporterOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
this.baseReporter = baseReporter; | ||
var opts = { | ||
@@ -38,0 +35,0 @@ captureStandardOutput: typeof reporterOptions.captureStandardOutput === 'boolean' ? reporterOptions.captureStandardOutput : false, |
@@ -19,28 +19,27 @@ 'use strict'; | ||
var _require = require('lodash'); | ||
var _require = require('lodash'), | ||
camelCase = _require.camelCase, | ||
get = _require.get, | ||
invoke = _require.invoke; | ||
var camelCase = _require.camelCase; | ||
var get = _require.get; | ||
var invoke = _require.invoke; | ||
var paths = { | ||
browser: function browser(_ref) { | ||
var cid = _ref.cid; | ||
return ['runner', cid, 'browserName']; | ||
var suite = _ref.suite; | ||
return ['suite', 'runner', suite.cid, 'browserName']; | ||
}, | ||
details: function details() { | ||
return 'err.stack'; | ||
return 'suite.err.stack'; | ||
}, | ||
flowId: function flowId() { | ||
return 'specHash'; | ||
flowId: function flowId(_ref2) { | ||
var suite = _ref2.suite; | ||
return ['reporter', 'baseReporter', 'stats', 'runners', suite.cid, 'sessionID']; | ||
}, | ||
hash: function hash() { | ||
return 'specHash'; | ||
return 'suite.specHash'; | ||
}, | ||
message: function message() { | ||
return 'err.message'; | ||
return 'suite.err.message'; | ||
}, | ||
title: function title() { | ||
return 'title'; | ||
return 'suite.title'; | ||
} | ||
@@ -78,4 +77,6 @@ }; | ||
var reporter = this; | ||
return pattern.replace(/\[([a-z]+)\]/gi, function (m, g) { | ||
return formatProp(g, suite); | ||
return formatProp(g, { suite: suite, reporter: reporter }); | ||
}); | ||
@@ -82,0 +83,0 @@ } |
{ | ||
"name": "wdio-teamcity-reporter", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "WebdriverIO Teamcity reporter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100802
6
173