|
|
|
@ -32,16 +32,6 @@ commander.command('help').description('output usage information').action(functio |
|
|
|
|
commander.help() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
commander.action(function (filename) { |
|
|
|
|
let web3 = new Web3() |
|
|
|
|
// web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'))
|
|
|
|
|
web3.setProvider(new Provider()) |
|
|
|
|
// web3.setProvider(new web3.providers.WebsocketProvider('ws://localhost:8546'))
|
|
|
|
|
|
|
|
|
|
let isDirectory = fs.lstatSync(filename).isDirectory() |
|
|
|
|
RemixTests.runTestFiles(filename, isDirectory, web3) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// get current version
|
|
|
|
|
commander |
|
|
|
|
.option('-v, --verbose <level>', 'run with verbosity', mapVerbosity) |
|
|
|
|