|
|
@ -18,6 +18,10 @@ var runTestFiles = function(filepath, isDirectory, web3) { |
|
|
|
next(err) |
|
|
|
next(err) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next(null, compilationResult, contracts) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
function determineTestContractsToRun(compilationResult, contracts, next) { |
|
|
|
let contractsToTest = [] |
|
|
|
let contractsToTest = [] |
|
|
|
if (isDirectory) { |
|
|
|
if (isDirectory) { |
|
|
|
fs.readdirSync(filepath).forEach(filename => { |
|
|
|
fs.readdirSync(filepath).forEach(filename => { |
|
|
@ -33,7 +37,6 @@ var runTestFiles = function(filepath, isDirectory, web3) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
next(null, contractsToTest, contracts) |
|
|
|
next(null, contractsToTest, contracts) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
function runTests (contractsToTest, contracts, next) { |
|
|
|
function runTests (contractsToTest, contracts, next) { |
|
|
|
var testCallback = function (result) { |
|
|
|
var testCallback = function (result) { |
|
|
|