jest-sonar
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -18,3 +18,3 @@ const Reporter = require('../src/reporter'); | ||
{ | ||
fullName: 'When doing this should be ok', | ||
fullName: 'When doing this should "be" ok', | ||
duration: 30, | ||
@@ -21,0 +21,0 @@ failureMessages: [] |
@@ -5,2 +5,11 @@ # Changelog | ||
### [0.2.1](https://github.com/sh33dafi/jest-sonar/compare/v0.2.0...v0.2.1) (2019-08-12) | ||
### Bug Fixes | ||
* Escaped strings inside attributes ([99add1c](https://github.com/sh33dafi/jest-sonar/commit/99add1c)) | ||
## [0.2.0](https://github.com/sh33dafi/jest-sonar/compare/v0.1.1...v0.2.0) (2019-08-01) | ||
@@ -7,0 +16,0 @@ |
{ | ||
"name": "jest-sonar", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A sonar reporter for jest", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
const path = require('path'); | ||
const xml = require('xml'); | ||
const escape = require('./escape'); | ||
@@ -14,3 +16,3 @@ class Reporter { | ||
name: testCase.fullName, | ||
duration: testCase.duration, | ||
duration: '' + testCase.duration, | ||
failures: testCase.failureMessages, | ||
@@ -42,3 +44,3 @@ status: testCase.status | ||
const buildTestCase = testCase => | ||
`<testCase name="${testCase.name}" duration="${testCase.duration}"`; | ||
`<testCase name="${escape(testCase.name)}" duration="${escape(testCase.duration)}"`; | ||
const buildFailure = failure => | ||
@@ -45,0 +47,0 @@ `<failure message="Error"><![CDATA[${failure}]]></failure>`; |
Sorry, the diff of this file is not supported yet
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
213770
19
187