File tree Expand file tree Collapse file tree 6 files changed +199
-98
lines changed
test/integration/projects/multiple-suites Expand file tree Collapse file tree 6 files changed +199
-98
lines changed Original file line number Diff line number Diff line change 11[ ![ Gitter chat] ( https://badges.gitter.im/sc-forks/solidity-coverage.svg )] [ 18 ]
2- ![ npm (tag)] ( https://img.shields.io/npm/v/solidity-coverage/beta )
2+ ![ npm (tag)] ( https://img.shields.io/npm/v/solidity-coverage/latest )
33[ ![ CircleCI] ( https://circleci.com/gh/sc-forks/solidity-coverage.svg?style=svg )] [ 20 ]
44[ ![ codecov] ( https://codecov.io/gh/sc-forks/solidity-coverage/branch/beta/graph/badge.svg )] [ 21 ]
55[ ![ buidler] ( https://buidler.dev/buidler-plugin-badge.svg?1 )] [ 26 ]
@@ -26,14 +26,22 @@ And add the following to your `buidler.config.js`:
2626
2727``` js
2828usePlugin (" solidity-coverage" );
29+
30+ module .exports = {
31+ networks: {
32+ coverage: {
33+ url: ' http://localhost:8555'
34+ }
35+ },
36+ }
2937```
3038
3139## Tasks
3240
3341This plugin implements a ` coverage ` task
3442
3543``` bash
36- npx buidler coverage [options]
44+ npx buidler coverage --network coverage [options]
3745```
3846
3947| Option <img width =200/ > | Example <img width =750/ >| Description <img width =1000/ > |
Original file line number Diff line number Diff line change @@ -45,12 +45,16 @@ truffle run coverage [command-options]
4545usePlugin (' solidity-coverage' )
4646
4747module .exports = {
48- networks: {... },
48+ networks: {
49+ coverage: {
50+ url: ' http://localhost:8555'
51+ }
52+ },
4953}
5054```
5155** Run**
5256```
53- npx buidler coverage [command-options]
57+ npx buidler coverage --network coverage [command-options]
5458```
5559
5660** Buidler Project Examples:**
Original file line number Diff line number Diff line change 4444 "web3" : " 1.2.6"
4545 },
4646 "devDependencies" : {
47- "@nomiclabs/buidler" : " ^1.1.2 " ,
48- "@nomiclabs/buidler-truffle5" : " ^1.1.2 " ,
49- "@nomiclabs/buidler-web3" : " ^1.1.2 " ,
47+ "@nomiclabs/buidler" : " ^1.3.6 " ,
48+ "@nomiclabs/buidler-truffle5" : " ^1.3.4 " ,
49+ "@nomiclabs/buidler-web3" : " ^1.3.4 " ,
5050 "@truffle/contract" : " ^4.0.36" ,
5151 "buidler-gas-reporter" : " ^0.1.3" ,
5252 "decache" : " ^4.5.1" ,
Original file line number Diff line number Diff line change 77set -o errexit
88
99# Clone target
10+ rm -rf contracts-v1
1011git clone https://github.com/sc-forks/contracts-v1.git
1112cd contracts-v1
1213
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ loadPluginFile(__dirname + "/../plugins/buidler.plugin");
33usePlugin ( "@nomiclabs/buidler-truffle5" ) ;
44
55module . exports = {
6- defaultNetwork : "buidlerevm" ,
6+ networks : {
7+ buidlerevm : {
8+ gasPrice : 2
9+ }
10+ } ,
711 logger : process . env . SILENT ? { log : ( ) => { } } : console ,
812} ;
You can’t perform that action at this time.
0 commit comments