Reputation: 307
I am working on a blockchain project and have several smart contracts to be tested. For that, I use the Truffle test suite and write JavaScript tests.
I want to know, is there any way to get the code coverage for smart contracts in the Truffle suite?
I have tried using this package solidity-coverage. I ran it with
truffle run coverage
But it gives me the following error when running on the Windows machine.
Error: truffle-plugin.json not found in the solidity-coverage plugin package!
Any solution for this error or an alternative way to get the coverage?
Upvotes: 3
Views: 298