-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot keep mock contracts in test directory #467
Cannot keep mock contracts in test directory #467
Comments
./contracts
are not being compiled
The reason @nachomazzara's contracts inside |
@alcuadrado Ah ok, thanks for solving. @nachomazzara Is decentraland/avatars-contract a good target to test a fix against? |
@cgewecke right! just that repo. |
@nachomazzara I've debugged this a bit and will open a PR today at avatars which gets most of the tests passing correctly under coverage. However, I'm seeing a very unusual error in 3 tests for ENS Ecosystem. They are supposed to revert
Instead, under coverage (which is using 20 ganache generated accounts) there is an Invalid Jump error that looks like this:
Have you ever seen this before? I'm not sure if it's something that is being caused by the way coverage instruments these contracts or if it's a defect in the way I've configured things. |
@alcuadrado It seems like Buidler is already deferring to the Truffle plugin's overload of that internal task. (Which is cool.) When I look in the However, those Solidity files have hardcoded import statements expecting to find sources in the This could be resolved by the 'in-flight' instrumentation strategy you proposed in #375 which would also make it possible to cover contracts in node_modules. Will look into that further - there's a lot of filtering etc that would need to be done to preserve the default expectation that |
./contracts
are not being compiled
@nachomazzara Renamed your issue to reflect the core problem - hope that's ok. |
Hey, sorry for the late reply! No, I have never seen that issue before. Let me know if I can help with something else. |
The tests which are failing are related to the Maybe it has something to be with it. |
This was auto-closed by accident...still an issue. The docs, (esp upgrade guide and FAQ) need to address this topic more aggressively. Almost every installation problem in the beta & 0.7.0 has revolved around hardcoded paths to |
I have contracts under
./test/helpers/contracts
which are not being compiled.Contracts under .
./contracts
folder are compiled ok.Is there any setting that I am missing?
Using it within buidler
Versions:
"buidler": "^0.2.8"
"solidity-coverage": "^0.7.1"
buidler.config
:The text was updated successfully, but these errors were encountered: