From 9a16718807e789b98bed871ce503fb540366ebee Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 29 Apr 2020 11:34:08 +0200 Subject: [PATCH 1/6] show message for error in test file --- src/app/tabs/test-tab.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 5a4b56a16c..968ac20577 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -273,6 +273,7 @@ module.exports = class TestTab extends ViewPlugin { // if all tests has been through before stopping no need to print this. this.testsExecutionStopped.hidden = false } + if (_errors) this.testsExecutionStoppedError.hidden = false 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') @@ -364,6 +365,7 @@ module.exports = class TestTab extends ViewPlugin { this.testsOutput.innerHTML = '' this.testsOutput.hidden = true this.testsExecutionStopped.hidden = true + this.testsExecutionStoppedError.hidden = true const tests = this.data.selectedTests if (!tests) return this.resultStatistics.hidden = tests.length === 0 @@ -484,7 +486,9 @@ module.exports = class TestTab extends ViewPlugin { this.onActivationInternal() this.testsOutput = yo` From 9363bc392eb2bf70d50c1166df137d1f91d55a1f Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 29 Apr 2020 11:50:07 +0200 Subject: [PATCH 2/6] updated test to check compilation error message --- test-browser/tests/solidityUnittests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test-browser/tests/solidityUnittests.js b/test-browser/tests/solidityUnittests.js index 869f62c717..ec3e4793ec 100644 --- a/test-browser/tests/solidityUnittests.js +++ b/test-browser/tests/solidityUnittests.js @@ -105,6 +105,7 @@ module.exports = { .pause(10000) .waitForElementPresent('*[data-id="testTabSolidityUnitTestsOutput"]') .assert.containsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'SyntaxError: No visibility specified') + .assert.containsText('*[data-id="testTabTestsExecutionStoppedError"]', 'The test execution has been stopped because of error in your test file') }, 'Should fail on deploy': function (browser) { From ba8cbc47b0d856acf557d60951899df41c95e9b0 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 29 Apr 2020 11:57:42 +0200 Subject: [PATCH 3/6] added(s) --- src/app/tabs/test-tab.js | 2 +- test-browser/tests/solidityUnittests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 968ac20577..ba7a4f8f0d 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -486,7 +486,7 @@ module.exports = class TestTab extends ViewPlugin { this.onActivationInternal() this.testsOutput = yo`