Skip to content

Commit e6e627b

Browse files
authored
Update main README with HH instructions (#572)
1 parent b6c4839 commit e6e627b

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,24 @@ module.exports = {
3838
truffle run coverage [command-options]
3939
```
4040

41-
### Buidler
41+
### Hardhat
42+
43+
Beginning with v0.7.12, this tool supports Hardhat and runs directly on
44+
HardhatEVM.
45+
46+
**Require** the plugin in `hardhat.config.js` ([Hardhat docs][26])
47+
```javascript
48+
require('solidity-coverage')
49+
```
50+
51+
**Run**
52+
```
53+
npx hardhat coverage [command-options]
54+
```
55+
56+
(Additional Hardhat-specific info can be found [here][37])
57+
58+
### Buidler [Deprecated]
4259

4360
**Add** the plugin in `buidler.config.js` ([Buidler docs][26])
4461
```javascript
@@ -64,7 +81,7 @@ npx buidler coverage --network coverage [command-options]
6481

6582
### @openzeppelin/test-environment
6683

67-
OpenZeppelin have written their own coverage generation scripts for `test-environment` using the solidity-coverage API.
84+
OpenZeppelin have written their own coverage generation scripts for `test-environment` using the solidity-coverage API.
6885
A working example can be found at [openzeppelin-contracts, here.][35]
6986

7087
## Usage notes:
@@ -212,4 +229,6 @@ $ yarn
212229
[33]: https://github.com/sc-forks/moloch
213230
[34]: https://github.com/sc-forks/solidity-coverage/blob/master/docs/advanced.md#reducing-the-instrumentation-footprint
214231
[35]: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/e5fbbda9bac49039847a7ed20c1d966766ecc64a/scripts/coverage.js
232+
[36]: https://hardhat.org/
233+
[37]: https://github.com/sc-forks/solidity-coverage/blob/master/HARDHAT_README.md
215234

0 commit comments

Comments
 (0)