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
212e089e
Commit
212e089e
authored
Aug 19, 2021
by
aniket-engg
Committed by
Aniket
Aug 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console removed from testRunner
parent
b9d36b49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
testRunner.spec.ts
libs/remix-tests/tests/testRunner.spec.ts
+0
-8
No files found.
libs/remix-tests/tests/testRunner.spec.ts
View file @
212e089e
...
...
@@ -43,7 +43,6 @@ let accounts: string[]
let
provider
:
any
=
new
Provider
()
async
function
compileAndDeploy
(
filename
:
string
,
callback
:
Function
)
{
console
.
log
(
'Inside compileAndDeploy'
)
let
web3
:
Web3
=
new
Web3
()
let
sourceASTs
:
any
=
{}
await
provider
.
init
()
...
...
@@ -52,7 +51,6 @@ async function compileAndDeploy(filename: string, callback: Function) {
let
compilationData
:
object
async
.
waterfall
([
function
getAccountList
(
next
:
Function
):
void
{
console
.
log
(
'Inside compileAndDeploy- getAccountList'
)
web3
.
eth
.
getAccounts
((
_err
:
Error
|
null
|
undefined
,
_accounts
:
string
[])
=>
{
accounts
=
_accounts
web3
.
eth
.
defaultAccount
=
accounts
[
0
]
...
...
@@ -60,11 +58,9 @@ async function compileAndDeploy(filename: string, callback: Function) {
})
},
function
compile
(
next
:
Function
):
void
{
console
.
log
(
'Inside compileAndDeploy- compile'
)
compileFileOrFiles
(
filename
,
false
,
{
accounts
},
null
,
next
)
},
function
deployAllContracts
(
compilationResult
:
compilationInterface
,
asts
,
next
:
Function
):
void
{
console
.
log
(
'Inside compileAndDeploy- deployAllContracts'
)
for
(
const
filename
in
asts
)
{
if
(
filename
.
endsWith
(
'_test.sol'
))
sourceASTs
[
filename
]
=
asts
[
filename
].
ast
...
...
@@ -77,7 +73,6 @@ async function compileAndDeploy(filename: string, callback: Function) {
}
}
],
function
(
_err
:
Error
|
null
|
undefined
,
contracts
:
any
):
void
{
console
.
log
(
'Outside compileAndDeploy'
)
callback
(
null
,
compilationData
,
contracts
,
sourceASTs
,
accounts
,
web3
)
})
}
...
...
@@ -85,7 +80,6 @@ async function compileAndDeploy(filename: string, callback: Function) {
// Use `export NODE_OPTIONS="--max-old-space-size=4096"` if there is a JavaScript heap out of memory issue
describe
(
'testRunner'
,
()
=>
{
console
.
log
(
'Inside testRunner'
)
let
tests
:
any
[]
=
[],
results
:
ResultsInterface
;
const
testCallback
:
TestCbInterface
=
(
err
,
test
)
=>
{
...
...
@@ -108,13 +102,11 @@ describe('testRunner', () => {
}
describe
(
'#runTest'
,
()
=>
{
console
.
log
(
'Inside runTest'
)
describe
(
'assert library OK method tests'
,
()
=>
{
const
filename
:
string
=
__dirname
+
'/examples_0/assert_ok_test.sol'
beforeAll
((
done
)
=>
{
console
.
log
(
'Inside beforeAll'
,
filename
)
compileAndDeploy
(
filename
,
(
_err
:
Error
|
null
|
undefined
,
compilationData
:
object
,
contracts
:
any
,
asts
:
any
,
accounts
:
string
[],
web3
:
any
)
=>
{
runTest
(
'AssertOkTest'
,
contracts
.
AssertOkTest
,
compilationData
[
filename
][
'AssertOkTest'
],
asts
[
filename
],
{
accounts
,
web3
},
testCallback
,
resultsCallback
(
done
))
})
...
...
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