diff --git a/lib/modules/tests/reporter.js b/lib/modules/tests/reporter.js index de20b469..db515061 100644 --- a/lib/modules/tests/reporter.js +++ b/lib/modules/tests/reporter.js @@ -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) {