Skip to content

Commit 954e328

Browse files
authored
Solccover (#732)
* init version * add .gitignore * more * lint * Update README.md * Update README.md * Update .travis.yml * Create .coveralls.yml * Update README.md * update coveralls * run solccover only on arc-factory branch * coverage * Update .travis.yml
1 parent b8e9868 commit 954e328

File tree

13 files changed

+2932
-771
lines changed

13 files changed

+2932
-771
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: gqyxdBIEqw5OOCDYLWoEsmLcWeS5axht9

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ site/
1212
yarn*
1313
.DS_Store
1414
report*
15+
coverage/
16+
coverage.json
17+
.covera*

.solcover.js

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
module.exports = {
2+
mocha: {
3+
enableTimeouts: false,
4+
grep: "@skip-on-coverage", // Find everything with this tag
5+
invert: true // Run the grep's inverse set.
6+
},
7+
providerOptions: {
8+
accounts: [
9+
{
10+
secretKey:
11+
"0xc5e8f61d1ab959b397eecc0a37a6517b8e67a0e7cf1f4bce5591f3ed80199122",
12+
balance: "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
13+
},
14+
{
15+
secretKey:
16+
"0xd49743deccbccc5dc7baa8e69e5be03298da8688a15dd202e20f15d5e0e9a9fb",
17+
balance: "10000000000000000000000"
18+
},
19+
{
20+
secretKey:
21+
"0x23c601ae397441f3ef6f1075dcb0031ff17fb079837beadaf3c84d96c6f3e569",
22+
balance: "10000000000000000000000"
23+
},
24+
{
25+
secretKey:
26+
"0xee9d129c1997549ee09c0757af5939b2483d80ad649a0eda68e8b0357ad11131",
27+
balance: "10000000000000000000000"
28+
},
29+
{
30+
secretKey:
31+
"0x87630b2d1de0fbd5044eb6891b3d9d98c34c8d310c852f98550ba774480e47cc",
32+
balance: "10000000000000000000000"
33+
},
34+
{
35+
secretKey:
36+
"0x275cc4a2bfd4f612625204a20a2280ab53a6da2d14860c47a9f5affe58ad86d4",
37+
balance: "10000000000000000000000"
38+
},
39+
{
40+
secretKey:
41+
"0x7f307c41137d1ed409f0a7b028f6c7596f12734b1d289b58099b99d60a96efff",
42+
balance: "10000000000000000000000"
43+
},
44+
{
45+
secretKey:
46+
"0x2a8aede924268f84156a00761de73998dac7bf703408754b776ff3f873bcec60",
47+
balance: "10000000000000000000000"
48+
},
49+
{
50+
secretKey:
51+
"0x8b24fd94f1ce869d81a34b95351e7f97b2cd88a891d5c00abc33d0ec9501902e",
52+
balance: "10000000000000000000000"
53+
},
54+
{
55+
secretKey:
56+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29085",
57+
balance: "10000000000000000000000"
58+
},
59+
{
60+
secretKey:
61+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29086",
62+
balance: "10000000000000000000000"
63+
},
64+
{
65+
secretKey:
66+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29087",
67+
balance: "10000000000000000000000"
68+
},
69+
{
70+
secretKey:
71+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29088",
72+
balance: "10000000000000000000000"
73+
},
74+
{
75+
secretKey:
76+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29089",
77+
balance: "10000000000000000000000"
78+
},
79+
{
80+
secretKey:
81+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908a",
82+
balance: "10000000000000000000000"
83+
},
84+
{
85+
secretKey:
86+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908b",
87+
balance: "10000000000000000000000"
88+
},
89+
{
90+
secretKey:
91+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908c",
92+
balance: "10000000000000000000000"
93+
},
94+
{
95+
secretKey:
96+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908d",
97+
balance: "10000000000000000000000"
98+
},
99+
{
100+
secretKey:
101+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908e",
102+
balance: "10000000000000000000000"
103+
},
104+
{
105+
secretKey:
106+
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908f",
107+
balance: "10000000000000000000000"
108+
}
109+
]
110+
}
111+
};

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ jobs:
2626
- stage: tests
2727
name: "JS Lint"
2828
script: npx eslint .
29+
30+
- stage: coverage
31+
name: "Solidity Test Coverage"
32+
if: branch = arc-factory
33+
script: npm run coveralls
34+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![Build Status](https://travis-ci.org/daostack/arc.svg?branch=master)](https://travis-ci.org/daostack/arc)
22
[![NPM Package](https://img.shields.io/npm/v/@daostack/arc.svg?style=flat-square)](https://www.npmjs.org/package/@daostack/arc)
33
[![Join the chat at https://gitter.im/daostack/Lobby](https://badges.gitter.im/daostack/Lobby.svg)](https://gitter.im/daostack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
[![Coverage Status](https://coveralls.io/repos/github/daostack/arc/badge.svg)](https://coveralls.io/github/daostack/arc)
45
# Arc
56

67
Arc is the base layer of the DAO stack. It consists of a set of smart contracts deployed on the Ethereum blockchain that define the basic building blocks and standard components that can be used to implement any DAO.

buidler.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
usePlugin("@nomiclabs/buidler-truffle5");
22
usePlugin("@nomiclabs/buidler-solhint");
3+
usePlugin("solidity-coverage");
34

45
// This is a sample Buidler task. To learn how to create your own go to
56
// https://buidler.dev/guides/create-task.html

0 commit comments

Comments
 (0)