From 774a8748e1c6ee5a7b19d0048be6fdaefd204e69 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Thu, 28 Oct 2021 18:45:37 +0530 Subject: [PATCH] add test files to not reset the result --- apps/remix-ide/src/app/tabs/test-tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 1995abe1f6..313f66c529 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -42,7 +42,7 @@ module.exports = class TestTab extends ViewPlugin { this.areTestsRunning = false this.defaultPath = 'tests' this.offsetToLineColumnConverter = offsetToLineColumnConverter - this.allFilesInvolved = [] + this.allFilesInvolved = ['.deps/remix-tests/remix_tests.sol', '.deps/remix-tests/remix_accounts.sol'] this.isDebugging = false this.currentErrors = [] @@ -112,7 +112,7 @@ module.exports = class TestTab extends ViewPlugin { this.testRunner.event.on('compilationFinished', (success, data, source) => { if (success) { - this.allFilesInvolved = Object.keys(data.sources) + this.allFilesInvolved.push(...Object.keys(data.sources)) // forwarding the event to the appManager infra // This is listened by compilerArtefacts to show data while debugging this.emit('compilationFinished', source.target, source, 'soljson', data)