You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
463 B
23 lines
463 B
#!/usr/bin/env node
|
|
const App = require('./../lib/app.js');
|
|
const reqCwd = require('req-cwd');
|
|
const death = require('death');
|
|
|
|
const log = console.log;
|
|
|
|
const config = reqCwd.silent('./.solcover.js') || {};
|
|
const app = new App(config);
|
|
|
|
death((signal, err) => app.cleanUp(err));
|
|
|
|
app.generateCoverageEnvironment();
|
|
app.instrumentTarget();
|
|
app.launchTestrpc()
|
|
.then(() => {
|
|
app.runTestCommand();
|
|
app.generateReport();
|
|
})
|
|
.catch(err => log(err));
|
|
|
|
|
|
|
|
|