-
Notifications
You must be signed in to change notification settings - Fork 277
Can't install on Ubuntu 16.04.3 #256
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
ubuntu@ip-172-18-1-199:~/solidity-coverage$ vi npm-debug.log 0 info it worked if it ends with ok |
@qinghua0120 Example installation mkdir myProject
cd myProject
truffle init
npm init
npm install --save-dev solidity-coverage |
@cgewecke |
How are you testing your contracts? The tool runs your unit tests and reports which lines of your contracts were executed during them. There are some notes about running on Windows in the README. |
I testing it via the metamask, call the contract between different account. But i think the testing is not enough, so i try to find some tools to do the code testing. |
Yes exactly @qinghua0120. Truffle is a common tool people use and for various reasons solidity-coverage currently assumes your project is organized with it. Other ethereum testing frameworks you might be interested in:
I would encourage you just to write tests in a framework you like and validate your code that way. Code coverage is useful for audits and if you're really concerned that your tests are hitting every line of your code. But it's just a measurement. |
I'm going to close this because it seems like your installation issue related to not installing within the context of a solidity project. |
Hi,
I meet the below error when try to install on ubuntu 16.04.3 via "npm install --save-dev solidity-coverage", who can help me to fix it?
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "solidity-coverage"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ENOSELF
npm ERR! Refusing to install solidity-coverage as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/solidity-coverage/npm-debug.log
The text was updated successfully, but these errors were encountered: