Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c17cdb2f
Commit
c17cdb2f
authored
Sep 03, 2021
by
aniket-engg
Committed by
Aniket
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not clear test results on file change while debugging
parent
019b5574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+8
-0
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
c17cdb2f
...
...
@@ -40,6 +40,8 @@ module.exports = class TestTab extends ViewPlugin {
this
.
areTestsRunning
=
false
this
.
defaultPath
=
'tests'
this
.
offsetToLineColumnConverter
=
offsetToLineColumnConverter
this
.
allFilesInvolved
=
[]
this
.
isDebugging
=
false
appManager
.
event
.
on
(
'activate'
,
(
name
)
=>
{
if
(
name
===
'solidity'
)
this
.
updateRunAction
()
...
...
@@ -98,6 +100,7 @@ module.exports = class TestTab extends ViewPlugin {
this
.
testRunner
.
event
.
register
(
'compilationFinished'
,
(
success
,
data
,
source
)
=>
{
if
(
success
)
{
this
.
allFilesInvolved
=
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
)
...
...
@@ -111,6 +114,9 @@ module.exports = class TestTab extends ViewPlugin {
}
async
updateForNewCurrent
(
file
)
{
// if current file is changed while debugging and one of the files imported in test file are opened
// do not clear the test results in SUT plugin
if
(
this
.
isDebugging
&&
this
.
allFilesInvolved
.
includes
(
file
))
return
this
.
data
.
allTests
=
[]
this
.
updateTestFileList
()
this
.
clearResults
()
...
...
@@ -202,6 +208,7 @@ module.exports = class TestTab extends ViewPlugin {
}
async
startDebug
(
txHash
,
web3
)
{
this
.
isDebugging
=
true
if
(
!
await
this
.
appManager
.
isActive
(
'debugger'
))
await
this
.
appManager
.
activatePlugin
(
'debugger'
)
this
.
call
(
'menuicons'
,
'select'
,
'debugger'
)
this
.
call
(
'debugger'
,
'debug'
,
txHash
,
web3
)
...
...
@@ -488,6 +495,7 @@ module.exports = class TestTab extends ViewPlugin {
}
runTest
(
testFilePath
,
callback
)
{
this
.
isDebugging
=
false
if
(
this
.
hasBeenStopped
)
{
this
.
updateFinalResult
()
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment