From b4d51cac9ef13efd3fb75bb4781b2c4a4bb2c28c Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 23 Apr 2020 21:01:03 +0200 Subject: [PATCH] stop after error --- src/app/tabs/test-tab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 97ae62b368..2d09e47758 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -177,8 +177,8 @@ module.exports = class TestTab extends ViewPlugin { // if all tests has been through before stopping no need to print this. this.testsExecutionStopped.hidden = false } - if (this.hasBeenStopped || this.readyTestsNumber === this.runningTestsNumber) { - // All tests are ready or the operation has been canceled + if (_errors || this.hasBeenStopped || this.readyTestsNumber === this.runningTestsNumber) { + // All tests are ready or the operation has been canceled or there was a compilation error in one of the test files. const stopBtn = document.getElementById('runTestsTabStopAction') stopBtn.setAttribute('disabled', 'disabled') const stopBtnLabel = document.getElementById('runTestsTabStopActionLabel') @@ -197,7 +197,7 @@ module.exports = class TestTab extends ViewPlugin { } /* - Test are not associated with the UI + Test is not associated with the UI */ testFromSource (content, path = 'browser/unit_test.sol') { return new Promise((resolve, reject) => {