wdio-teamcity-reporter
Advanced tools
Comparing version 1.0.2-beta.1 to 1.0.2-beta.2
10
index.js
@@ -25,6 +25,8 @@ 'use strict'; | ||
/** | ||
* @param {object} baseReporter | ||
* @param {object} wdioConf | ||
* @param {object} reporterOptions | ||
* @param {string} reporterOptions.msg | ||
* @param {object} baseReporter | ||
* @param {object} wdioConf | ||
* @param {object} reporterOptions | ||
* @param {boolean} reporterOptions.captureStandardOutput | ||
* @param {boolean} reporterOptions.flowId | ||
* @param {string} reporterOptions.message | ||
* @return {wdioTeamcityReporter} | ||
@@ -31,0 +33,0 @@ */ |
@@ -36,7 +36,7 @@ 'use strict'; | ||
'suite:start': '##teamcity[testSuiteStarted flowId=\'[flowId]\' name=\'[name]\']', | ||
'test:start': '##teamcity[testSuiteStarted flowId=\'[flowId]\' name=\'[name]\' captureStandardOutput=\'[captureStandardOutput]\']', | ||
'test:end': '##teamcity[testSuiteStarted flowId=\'[flowId]\' name=\'[name]\']', | ||
'test:fail': '##teamcity[testSuiteStarted flowId=\'[flowId]\' name=\'[name]\' message=\'[message]\' details=\'[details]\']', | ||
'test:pending': '##teamcity[testSuiteStarted flowId=\'[flowId]\' name=\'[name]\' message=\'pending\']', | ||
'suite:end': '##teamcity[testSuiteStarted flowId=\'[flowId]\' name=\'[name]\']' | ||
'test:start': '##teamcity[testStarted flowId=\'[flowId]\' name=\'[name]\' captureStandardOutput=\'[captureStandardOutput]\']', | ||
'test:end': '##teamcity[testFinished flowId=\'[flowId]\' name=\'[name]\']', | ||
'test:fail': '##teamcity[testFailed flowId=\'[flowId]\' name=\'[name]\' message=\'[message]\' details=\'[details]\']', | ||
'test:pending': '##teamcity[testIgnored flowId=\'[flowId]\' name=\'[name]\' message=\'pending\']', | ||
'suite:end': '##teamcity[testSuiteFinished flowId=\'[flowId]\' name=\'[name]\']' | ||
}; | ||
@@ -75,3 +75,6 @@ | ||
return str.toString().replace(/\|/g, '||').replace(/\n/g, '|n').replace(/\r/g, '|r').replace(/\[/g, '|[').replace(/\]/g, '|]').replace(/\u(\d{4})/g, '|0x$1').replace(/'/g, '|\''); | ||
return str.toString().replace(/\|/g, '||').replace(/\n/g, '|n').replace(/\r/g, '|r').replace(/\[/g, '|[').replace(/\]/g, '|]').replace(/\u0085/g, '|x') // next line | ||
.replace(/\u2028/g, '|l') // line separator | ||
.replace(/\u2029/g, '|p') // paragraph separator | ||
.replace(/'/g, '|\''); | ||
} | ||
@@ -78,0 +81,0 @@ |
{ | ||
"name": "wdio-teamcity-reporter", | ||
"version": "1.0.2-beta.1", | ||
"version": "1.0.2-beta.2", | ||
"description": "WebdriverIO Teamcity reporter", | ||
@@ -37,2 +37,3 @@ "main": "index.js", | ||
"babel-cli": "^6.9.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-register": "^6.9.0", | ||
@@ -39,0 +40,0 @@ "eslint": "^2.10.2", |
@@ -25,6 +25,5 @@ wdio-teamcity-reporter | ||
reporterOptions: { | ||
captureStandardOutput: true, // false by default | ||
flowId: false, // optional, true by default | ||
message: '[title]', // possibility to provide particular format for the name property. | ||
// Possible values: [browser] [title] [hash] or its combination | ||
captureStandardOutput: false, // optional | ||
flowId: true, // optional | ||
message: '[title]', // optional | ||
}, | ||
@@ -35,3 +34,11 @@ // ... | ||
### reporterOptions | ||
`reporterOptions` provide you a possibility to adjust reporter functionality. | ||
- `captureStandardOutput (boolean)` — if `true`, all the standard output (and standard error) messages received between `testStarted` and `testFinished` messages will be considered test output. The default value is `false` and assumes usage of testStdOut and testStdErr service messages to report the test output. Default `false`. | ||
- `flowId (boolean)` — if `true`, `flowId` property will be added to all messages. Flow tracking is necessary for example to distinguish separate processes running in parallel. Default `true`. | ||
- `message (string)` — possibility to provide particular format for the name property. Possible keys: `[browser]`, `[title]`, `[hash]`. Example, `[browser] [title]`. Default `[title]`. | ||
## Links | ||
@@ -38,0 +45,0 @@ |
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
8238
144
50
8