wip
This commit is contained in:
parent
c1e70a4185
commit
253d3dd57c
|
@ -57,7 +57,8 @@ class Engine {
|
||||||
"libraryManager": this.libraryManagerService,
|
"libraryManager": this.libraryManagerService,
|
||||||
"processManager": this.processManagerService,
|
"processManager": this.processManagerService,
|
||||||
"storage": this.storageService,
|
"storage": this.storageService,
|
||||||
"graph": this.graphService
|
"graph": this.graphService,
|
||||||
|
"codeCoverage": this.codeCoverageService
|
||||||
};
|
};
|
||||||
|
|
||||||
let service = services[serviceName];
|
let service = services[serviceName];
|
||||||
|
@ -226,6 +227,9 @@ class Engine {
|
||||||
this.registerModule('library_manager');
|
this.registerModule('library_manager');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
codeCoverageService(_options) {
|
||||||
|
this.registerModule('coverage');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Engine;
|
module.exports = Engine;
|
||||||
|
|
|
@ -1,9 +1,18 @@
|
||||||
class CodeCoverage {
|
class CodeCoverage {
|
||||||
constructor(embark, options) {
|
constructor(embark, _options) {
|
||||||
const self = this;
|
|
||||||
|
|
||||||
this.events = embark.events;
|
this.events = embark.events;
|
||||||
this.logger = embark.logger;
|
this.logger = embark.logger;
|
||||||
|
|
||||||
|
embark.registerActionForEvent('contracts:deploy:afterAll', this.deployed.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
deployed(cb) {
|
||||||
|
this.events.request('contracts:list', (error, contracts) => {
|
||||||
|
console.dir(error);
|
||||||
|
console.dir(contracts);
|
||||||
|
cb();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = CodeCoverage;
|
||||||
|
|
|
@ -120,6 +120,7 @@ class Test {
|
||||||
ipcRole: 'client'
|
ipcRole: 'client'
|
||||||
});
|
});
|
||||||
this.events.request('deploy:setGasLimit', 6000000);
|
this.events.request('deploy:setGasLimit', 6000000);
|
||||||
|
this.engine.startService("codeCoverage");
|
||||||
}
|
}
|
||||||
|
|
||||||
init(callback) {
|
init(callback) {
|
||||||
|
|
Loading…
Reference in New Issue