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
a7423bc6
Commit
a7423bc6
authored
Oct 24, 2018
by
William Entriken
Committed by
yann300
Jan 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work on #1013
parent
1e6560e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
index.js
remix-tests/src/index.js
+20
-2
No files found.
remix-tests/src/index.js
View file @
a7423bc6
...
...
@@ -164,8 +164,26 @@ var runTestFiles = function (filepath, isDirectory, web3, opts) {
}
if
(
isDirectory
)
{
fs
.
readdirSync
(
filepath
).
forEach
(
filename
=>
{
gatherContractsFrom
(
filename
)
fs
.
walkSync
=
function
(
start
,
callback
)
{
fs
.
readdirSync
(
start
).
forEach
(
name
=>
{
if
(
name
===
'node_modules'
)
{
return
;
// hack
}
var
abspath
=
path
.
join
(
start
,
name
);
if
(
fs
.
statSync
(
abspath
).
isDirectory
())
{
fs
.
walkSync
(
abspath
,
callback
);
}
else
{
callback
(
abspath
);
}
});
};
fs
.
walkSync
(
filepath
,
foundpath
=>
{
if
(
foundpath
.
indexOf
(
'_test.sol'
)
<
0
)
{
return
}
Object
.
keys
(
compilationResult
[
foundpath
]).
forEach
(
contractName
=>
{
contractsToTest
.
push
(
contractName
)
})
})
}
else
{
gatherContractsFrom
(
filepath
)
...
...
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