Comments (3)
Actually this is now available as an option with #80 / v.0.1.8
from eth-gas-reporter.
Hi @chapati23.
Would you like the reporter to include the regular mocha test duration output? One issue with this is that the gas reporter makes many additional RPC calls and might not accurately reflect where the bottle-necks are.
A work-around I've seen is to have the gas-reporter attached conditionally in truffle.js
. AragonOS has an example here which allows them to toggle between reporters using an environment variable.
$ truffle test # Regular mocha reports with time
$ GAS_REPORTER=true truffle test # Gas analysis
from eth-gas-reporter.
thanks @cgewecke — we opted for a similar path now https://github.com/brickblock-io/smart-contracts/blob/master/truffle.js#L50-L63
wasn't aware of the extent of distortion of test duration through the gas reporter. would have been nice to get both in one go (gas costs + accurate test duration) but it's a tradeoff i can live with :)
from eth-gas-reporter.
Related Issues (20)
- Not working properly when tests are written using Waffle HOT 1
- No report when using truffle >= 5.4.25 HOT 4
- Terminal output corrupted HOT 2
- Support different method call scenarios HOT 2
- Feature request: Optimism support HOT 10
- Not seeing USD price HOT 1
- Github action without codechecks for gas difference
- @ethersproject/abi minimum version is too low HOT 1
- app/assets/v2/js/cart.js HOT 1
- Beacon chain
- Joinme HOT 5
- Xlm
- Change Int to Float for gas gwei representation HOT 2
- eth-gas-reporter not working on Macbook Pro 2021, 14 inch, Error: truffle-plugin.json not found in the eth-gas-reporter plugin package! HOT 2
- compiler optimization & runs HOT 3
- eth-gas-reporter with Hardhat multiple compiler versions HOT 1
- Should have an option to switch between type-2 (EIP-1559) txs and legacy transactions HOT 1
- CVE-2023-28155 Issued for Request 2.88.2 HOT 1
- dependant on old mocha version HOT 2
- Deprecate package / Port to hardhat-gas-reporter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eth-gas-reporter.