jest-teamcity
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -13,5 +13,6 @@ [ | ||
{ "ancestorTitles": ["path2", "to", "test3"], "title": "title3", "status": "passed", "duration": 123 }, | ||
{ "ancestorTitles": ["path2", "to", "test4"], "title": "title4", "status": "failed", "duration": 123 } | ||
{ "ancestorTitles": ["path2", "to", "test4"], "title": "title4", "status": "failed", "duration": 123 }, | ||
{ "ancestorTitles": ["path2", "to", "test5"], "title": "title5", "status": "failed", "failureMessages": ["Unexpected exception\n at path/to/file1.js:1\n at path/to/file2.js:2"], "duration": 123 } | ||
] | ||
} | ||
] |
@@ -35,2 +35,7 @@ "use strict"; | ||
["##teamcity[testSuiteFinished name='test4' flowId='12345']"], | ||
["##teamcity[testSuiteStarted name='test5' flowId='12345']"], | ||
["##teamcity[testStarted name='title5' flowId='12345']"], | ||
["##teamcity[testFailed name='title5' message='Unexpected exception' details='at path/to/file1.js:1|n at path/to/file2.js:2' flowId='12345']"], | ||
["##teamcity[testFinished name='title5' duration='123' flowId='12345']"], | ||
["##teamcity[testSuiteFinished name='test5' flowId='12345']"], | ||
["##teamcity[testSuiteFinished name='to' flowId='12345']"], | ||
@@ -37,0 +42,0 @@ ["##teamcity[testSuiteFinished name='path2' flowId='12345']"], |
@@ -30,2 +30,7 @@ const consoleOutput = [ | ||
["##teamcity[testSuiteFinished name='test4' flowId='12345']"], | ||
["##teamcity[testSuiteStarted name='test5' flowId='12345']"], | ||
["##teamcity[testStarted name='title5' flowId='12345']"], | ||
["##teamcity[testFailed name='title5' message='Unexpected exception' details='at path/to/file1.js:1|n at path/to/file2.js:2' flowId='12345']"], | ||
["##teamcity[testFinished name='title5' duration='123' flowId='12345']"], | ||
["##teamcity[testSuiteFinished name='test5' flowId='12345']"], | ||
["##teamcity[testSuiteFinished name='to' flowId='12345']"], | ||
@@ -32,0 +37,0 @@ ["##teamcity[testSuiteFinished name='path2' flowId='12345']"], |
@@ -46,7 +46,8 @@ "use strict"; | ||
test.failureMessages.forEach(error => { | ||
const [message, stack] = error.split("\n "); | ||
const separator = "\n "; | ||
const [message, ...stack] = error.split(separator); | ||
this.log( | ||
`##teamcity[testFailed name='${this.escape(test.title)}' message='${this.escape( | ||
message | ||
)}' details='${this.escape(stack)}' flowId='${flowId}']` | ||
)}' details='${this.escape(stack.join(separator))}' flowId='${flowId}']` | ||
); | ||
@@ -53,0 +54,0 @@ }); |
{ | ||
"name": "jest-teamcity", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Teamcity Reporter for Jest Testing framework", | ||
@@ -12,3 +12,3 @@ "homepage": "https://github.com/itereshchenkov/jest-teamcity", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.18.2" | ||
"prettier": "^1.19.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "scripts": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19676
12
345
0