eth-gas-reporter
Advanced tools
Comparing version 0.0.13 to 0.0.14
## Changelog: eth-gas-reporter | ||
0.0.13 / 2017-11-15 | ||
=================== | ||
* Filter throws by receipt.status if possible | ||
* Use testrpc 6.0.2 in tests, add view and pure methods to tests. | ||
0.0.12 / 2017-10-28 | ||
@@ -4,0 +10,0 @@ =================== |
16
index.js
@@ -16,2 +16,3 @@ const mocha = require('mocha') | ||
let n = 0 | ||
let failed = false; | ||
let startBlock | ||
@@ -135,2 +136,3 @@ let deployStartBlock | ||
runner.on('fail', test => { | ||
failed = true; | ||
let fmt = indent() + color('fail', ' %d) %s') | ||
@@ -142,8 +144,14 @@ log() | ||
runner.on('end', () => { | ||
stats | ||
.generateGasStatsReport(methodMap, deployMap) | ||
.then(() => self.epilogue()); | ||
}) | ||
if (!failed){ | ||
stats | ||
.generateGasStatsReport(methodMap, deployMap) | ||
.then(() => self.epilogue() ); | ||
} else { | ||
self.epilogue(); | ||
} | ||
}); | ||
} | ||
/** | ||
@@ -150,0 +158,0 @@ * Inherit from `Base.prototype`. |
{ | ||
"name": "eth-gas-reporter", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Mocha reporter which shows gas used per unit test.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"name": "eth-gas-reporter", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Mocha reporter which shows gas used per unit test.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34105
604