buidler-gas-reporter table incomplete (using buidler node as server)
See original GitHub issueHi @cgewecke .
Yesterday, I wanted to configure buidler-gas-reporter for the first time.
The first gotcha for me was that I had to spin up npx buidler node in order for the buidler-gas-reporter overriden npx buidler test command to work and connect to the localhost network properly. When I naively tried running npx buidler test by itself I had gotten this error Error: connect ECONNREFUSED 127.0.0.1:8545.
However, once I ran the buidler node the test suite was run.
Now I am stuck with this incomplete test table however:

Do you know what’s going on here and how I can fix it?
I can’t wait to use buidler-gas-reporter with codechecks in our CI.
Reproduce:
usePlugin("buidler-gas-reporter")npx buidler nodenpx buidler test
Environment:
- buidler repo: “@nomiclabs/buidler”: “1.2.0”, “@nomiclabs/buidler-ethers”: “1.2.0”, “@nomiclabs/buidler-waffle”: “1.2.0”, “buidler-gas-reporter”: “^0.1.3”, “ethers”: “4.0.47”,
- macOS Catalina 10.15.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Node console.log on large array shows "... 86 more items"
I was able to port my applications to puppeteer just fine but ran into the problem that when I want to capture data...
Read more >Node.js v19.3.0 Documentation
An example of a web server written with Node.js which responds with 'Hello, World!' : Commands in this document start with $ or...
Read more >Use Azure Pipelines to build and publish a Node.js package
This quickstart walks through how to use a pipeline to create a Node.js package with Node Package Manager (npm) and publish a pipeline ......
Read more >Troubleshooting Node.js Deploys - Heroku Dev Center
Your Node.js deploy failed - now what? Start with these simple steps to troubleshoot a build issue. Check the buildpack.
Read more >ts-node - npm
TypeScript execution environment and REPL for node.js, with source map ... Start using ts-node in your project by running `npm i ts-node`.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@gitpusha Yes,
In the gasReporter config options there is an
enabledflag you can toggle on and off using environment variables.(Not sure what developments there have been on the buidler side but when this module was written, it was not possible for a “overriding” plugin to add its own command line options. That would be ideal.)
@cgewecke
npx buidler node-npx buidler test --network localhostworks! I get a neat gas report. Thank you!
I just also ran a my coverage with 0.7.5 and the buidler-gas-reporter plugin enabled, and saw that no report was produced for the coverage run, which is what I want anyway, so all good.
I can close this issue. Thanks for helping out.