mirror of https://github.com/embarklabs/embark.git
display gas cost of each test
This commit is contained in:
parent
b491134bb9
commit
0f18c5caf1
|
@ -26,6 +26,10 @@ class EmbarkSpec extends Base {
|
|||
|
||||
console.log(fmt, receipt.className, receipt.gasUsed);
|
||||
}
|
||||
function onBlockHeader(blockHeader) {
|
||||
self.stats.totalGasCost += blockHeader.gasUsed;
|
||||
self.stats.test.gasUsed += blockHeader.gasUsed;
|
||||
}
|
||||
|
||||
function onBlockHeader(blockHeader) {
|
||||
if(!self.listenForGas) {
|
||||
|
|
Loading…
Reference in New Issue