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
96fabf9f
Commit
96fabf9f
authored
Jan 15, 2021
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests working
parent
5745e9da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
compiler.ts
libs/remix-tests/src/compiler.ts
+5
-4
testRunner.cli.spec.ts
libs/remix-tests/tests/testRunner.cli.spec.ts
+9
-5
testRunner.spec.ts
libs/remix-tests/tests/testRunner.spec.ts
+1
-1
No files found.
libs/remix-tests/src/compiler.ts
View file @
96fabf9f
...
...
@@ -125,11 +125,12 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts:
}
finally
{
async
.
waterfall
([
function
loadCompiler
(
next
)
{
const
{
currentCompilerUrl
,
evmVersion
,
optimize
,
usingWorker
}
=
compilerConfig
compiler
=
new
RemixCompiler
()
compiler
.
set
(
'evmVersion'
,
evmVersion
)
compiler
.
set
(
'optimize'
,
optimize
)
// compiler.loadVersion(usingWorker, currentCompilerUrl)
if
(
compilerConfig
)
{
const
{
currentCompilerUrl
,
evmVersion
,
optimize
,
usingWorker
}
=
compilerConfig
compiler
.
set
(
'evmVersion'
,
evmVersion
)
compiler
.
set
(
'optimize'
,
optimize
)
}
compiler
.
onInternalCompilerLoaded
()
// compiler.event.register('compilerLoaded', this, function (version) {
next
()
...
...
libs/remix-tests/tests/testRunner.cli.spec.ts
View file @
96fabf9f
...
...
@@ -22,13 +22,17 @@ describe('testRunner: remix-tests CLI', () => {
const
expectedHelp
=
`Usage: remix-tests [options] [command]
Options:
-V, --version output the version number
-v, --verbose <level> run with verbosity
-h, --help output usage information
-V, --version output the version number
-c, --compiler <string> set compiler version
-e, --evm <string> set EVM version
-o, --optimize <bool> enable/disable optimization
-r, --runs <number> set runs
-v, --verbose <level> set verbosity level
-h, --help output usage information
Commands:
version output the version number
help output usage information`
version
output the version number
help
output usage information`
expect
(
res
.
stdout
.
toString
().
trim
()).
toBe
(
expectedHelp
)
})
...
...
libs/remix-tests/tests/testRunner.spec.ts
View file @
96fabf9f
...
...
@@ -57,7 +57,7 @@ async function compileAndDeploy(filename: string, callback: Function) {
})
},
function
compile
(
next
:
Function
):
void
{
compileFileOrFiles
(
filename
,
false
,
{
accounts
},
next
)
compileFileOrFiles
(
filename
,
false
,
{
accounts
},
n
ull
,
n
ext
)
},
function
deployAllContracts
(
compilationResult
:
compilationInterface
,
asts
,
next
:
Function
):
void
{
for
(
const
filename
in
asts
)
{
...
...
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