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
80587dd6
Commit
80587dd6
authored
Aug 30, 2021
by
aniket-engg
Committed by
Aniket
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return web3 for failed tests
parent
8fcd7bda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
testRunner.ts
libs/remix-tests/src/testRunner.ts
+4
-2
types.ts
libs/remix-tests/src/types.ts
+1
-0
No files found.
libs/remix-tests/src/testRunner.ts
View file @
80587dd6
...
@@ -322,7 +322,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
...
@@ -322,7 +322,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
assertMethod
,
assertMethod
,
returned
:
testEvent
[
3
],
returned
:
testEvent
[
3
],
expected
:
testEvent
[
4
],
expected
:
testEvent
[
4
],
location
location
,
web3
}
}
if
(
hhLogs
)
resp
.
hhLogs
=
hhLogs
if
(
hhLogs
)
resp
.
hhLogs
=
hhLogs
testCallback
(
undefined
,
resp
)
testCallback
(
undefined
,
resp
)
...
@@ -373,7 +374,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
...
@@ -373,7 +374,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
filename
:
testObject
.
filename
,
filename
:
testObject
.
filename
,
time
:
time
,
time
:
time
,
errMsg
:
err
.
message
,
errMsg
:
err
.
message
,
context
:
testName
context
:
testName
,
web3
}
}
testCallback
(
undefined
,
resp
)
testCallback
(
undefined
,
resp
)
failureNum
+=
1
failureNum
+=
1
...
...
libs/remix-tests/src/types.ts
View file @
80587dd6
...
@@ -37,6 +37,7 @@ export interface TestResultInterface {
...
@@ -37,6 +37,7 @@ export interface TestResultInterface {
expected
?:
string
|
number
expected
?:
string
|
number
location
?:
string
location
?:
string
hhLogs
?:
[]
hhLogs
?:
[]
web3
?:
any
}
}
export
interface
TestCbInterface
{
export
interface
TestCbInterface
{
(
error
:
Error
|
null
|
undefined
,
result
:
TestResultInterface
)
:
void
;
(
error
:
Error
|
null
|
undefined
,
result
:
TestResultInterface
)
:
void
;
...
...
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