-
Notifications
You must be signed in to change notification settings - Fork 279
Script ignores compilers
configuration of truffle.config.js
#360
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
Comments
@meyer1994 Do you have a coverage network listed in your truffle-config.js as shown in the README? SC loads the truffle config and if it doesn't see a coverage network it runs the tests with its own bare bones truffle config which uses the Truffle defaults. You don't have to launch a client or anything, just list that network. |
@meyer1994 Any luck with this? |
Sorry about the late response. You were right. Creating Now about the first fix. Shouldn't the |
Yes, it should. Right now the coverage tool has a very awkward integration with Truffle - it was initially built around Truffle 3 and does everything 'from outside'. These configuration problems should be resolved in the next version which will be written as a Truffle plugin. |
@meyer1994 I've edited the README to make it clear that adding a coverage network is a default installation requirement. Closing since SC does handle the compiler correctly when a network is defined. Feel free to describe your failing test problem in this thread though... |
Uh oh!
There was an error while loading. Please reload this page.
I currently have this
solc
version:And my
truffle.config.js
has this compilers section:But, when running
$ npx solidity-coverage
, it uses another version?Runnning
truffle test
uses the correct (native) version. Is there some configuration that I am missing?The text was updated successfully, but these errors were encountered: