diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js
index 9cca1a4938..cb9fa8786c 100644
--- a/src/app/tabs/test-tab.js
+++ b/src/app/tabs/test-tab.js
@@ -135,12 +135,24 @@ module.exports = class TestTab extends ViewPlugin {
}
this.rawFileName = result.filename
this.runningTestFileName = this.cleanFileName(this.rawFileName, this.testSuite)
- this.outputHeader = yo`
${this.testSuite} ${this.rawFileName}
`
+ this.outputHeader = yo`
+
+ ${this.testSuite} ${this.rawFileName}
+
+ `
this.testsOutput.appendChild(this.outputHeader)
} else if (result.type === 'testPass') {
- this.testsOutput.appendChild(yo`✓ ${result.value}
`)
+ this.testsOutput.appendChild(yo`
+
+ ✓ ${result.value}
+
+ `)
} else if (result.type === 'testFailure') {
- this.testsOutput.appendChild(yo`✘ ${result.value}
`)
+ this.testsOutput.appendChild(yo`
+
+ ✘ ${result.value}
+
+ `)
}
}
@@ -149,9 +161,6 @@ module.exports = class TestTab extends ViewPlugin {
// result.passingNum
// result.failureNum
// result.timePassed
- if (!_err) {
- this.testsOutput
- }
cb()
}
@@ -161,13 +170,29 @@ module.exports = class TestTab extends ViewPlugin {
setHeader (status) {
if (status) {
- const label = yo`PASS
`
+ const label = yo`
+
+ PASS
+
+ `
- this.outputHeader && yo.update(this.outputHeader, yo`${label} ${this.testSuite} ${this.rawFileName}
`)
+ this.outputHeader && yo.update(this.outputHeader, yo`
+
+ ${label} ${this.testSuite} ${this.rawFileName}
+
+ `)
} else {
- const label = yo`FAIL
`
+ const label = yo`
+
+ FAIL
+
+ `
- this.outputHeader && yo.update(this.outputHeader, yo`${label} ${this.testSuite} ${this.rawFileName}
`)
+ this.outputHeader && yo.update(this.outputHeader, yo`
+
+ ${label} ${this.testSuite} ${this.rawFileName}
+
+ `)
}
}
@@ -189,11 +214,25 @@ module.exports = class TestTab extends ViewPlugin {
yo.update(this.resultStatistics, this.createResultLabel())
if (result) {
if (result.totalPassing > 0 && result.totalFailing > 0) {
- this.testsOutput.appendChild(yo`${result.totalPassing} passing, ${result.totalFailing} failing (${result.totalTime}s)
`)
+ this.testsOutput.appendChild(yo`
+
+ ${result.totalPassing} passing,
+ ${result.totalFailing} failing
+ (${result.totalTime}s)
+
+ `)
} else if (result.totalPassing > 0 && result.totalFailing <= 0) {
- this.testsOutput.appendChild(yo`${result.totalPassing} passing (${result.totalTime}s)
`)
+ this.testsOutput.appendChild(yo`
+
+ ${result.totalPassing} passing (${result.totalTime}s)
+
+ `)
} else if (result.totalPassing <= 0 && result.totalFailing > 0) {
- this.testsOutput.appendChild(yo`${result.totalFailing} failing
`)
+ this.testsOutput.appendChild(yo`
+
+ ${result.totalFailing} failing
+
+ `)
}
//fix for displaying right label for multiple tests (testsuites) in a single file
this.testSuites.forEach(testSuite => {
@@ -212,18 +251,23 @@ module.exports = class TestTab extends ViewPlugin {
if (!isFailingLabel) this.setHeader(false)
displayError.appendChild(yo`
-
+
`)
})
if (result.errors && result.errors.length > 0) {
this.testsOutput.appendChild(displayError)
}
- this.testsOutput.appendChild(yo``)
+ this.testsOutput.appendChild(yo`
+
+ `)
}
if (this.hasBeenStopped && (this.readyTestsNumber !== this.runningTestsNumber)) {
// if all tests has been through before stopping no need to print this.
@@ -438,7 +482,7 @@ module.exports = class TestTab extends ViewPlugin {
render () {
this.onActivationInternal()
- this.testsOutput = yo``
+ this.testsOutput = yo`
`
this.testsExecutionStopped = yo`The test execution has been stopped `
this.testsExecutionStopped.hidden = true
this.resultStatistics = this.createResultLabel()