You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
I'm working on a project using the Truffle framework for development, Ganache as a local network and Waffle for testing. The reason I don't use native testing for Truffle is that I find creating mocks easily a really convenient tool, and with Waffle, it doesn't require creating new contracts with almost copied logic as the original one.
I was trying to get gas usage of the methods called during unit testing using eth-gas-reporter, but I cannot generate a report with methods gas usage. However, I do get contacts deployment gas usage.
Something that I think is causing this is that I do not use artefacts generated during truffle deploy command. I use files with generated ABI and bytecode, as I couldn't use artefacts in combination with Waffle, which operates with Ethers.js in the background.
This is a report generated after running tests:
Does this ring any bell? Do I need to somehow configure the reporter differently? As you can see, the reporter is running during tests, so that's not an issue.
Would be really grateful if anyone got an answer. If you need more information, please ping me, I will provide it.
The text was updated successfully, but these errors were encountered:
Hi everyone,
I'm working on a project using the Truffle framework for development, Ganache as a local network and Waffle for testing. The reason I don't use native testing for Truffle is that I find creating mocks easily a really convenient tool, and with Waffle, it doesn't require creating new contracts with almost copied logic as the original one.
I was trying to get gas usage of the methods called during unit testing using eth-gas-reporter, but I cannot generate a report with methods gas usage. However, I do get contacts deployment gas usage.
Something that I think is causing this is that I do not use artefacts generated during
![Screenshot 2021-12-01 at 14 15 39](https://user-images.githubusercontent.com/20232629/144241003-26638b39-7c5c-4887-9d3b-c8d0adf15b7c.png)
truffle deploy
command. I use files with generated ABI and bytecode, as I couldn't use artefacts in combination with Waffle, which operates with Ethers.js in the background.This is a report generated after running tests:
![Screenshot 2021-12-01 at 14 17 43](https://user-images.githubusercontent.com/20232629/144241268-c7906ebb-2d6b-4250-a945-6123d6823b56.png)
Does this ring any bell? Do I need to somehow configure the reporter differently? As you can see, the reporter is running during tests, so that's not an issue.
Would be really grateful if anyone got an answer. If you need more information, please ping me, I will provide it.
The text was updated successfully, but these errors were encountered: