Add initial message

pull/7/head
0mkar 6 years ago
parent 6dd8e4a654
commit cf1cd8c077
  1. 17
      remix-tests/src/run.js

@ -2,11 +2,24 @@ const commander = require('commander')
const Web3 = require('web3')
const RemixTests = require('./index.js')
const fs = require('fs')
const signale = require('signale')
const { Signale } = require('signale')
const Provider = require('remix-simulator').Provider
require('colors')
// signale configuration
const options = {
types: {
greet: {
badge: '\n👁',
label: '',
color: 'yellow'
}
}
}
const signale = new Signale(options)
commander.action(function (filename) {
signale.greet(('Running remix-tests: Unit testing for solidity.\n').yellow)
let web3 = new Web3()
// web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'))
web3.setProvider(new Provider())

Loading…
Cancel
Save