forked from livepeer/protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.solcover.js
25 lines (23 loc) · 1.06 KB
/
.solcover.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const glob = require("glob")
const testFiles = glob.sync("contracts/test/*.sol").map(file => file.replace("contracts/", ""))
const mockFiles = ["verification/IdentityVerifier.sol", "rounds/AdjustableRoundsManager.sol"]
const interfaces = [
"IController.sol",
"IManager.sol",
"bonding/IBondingManager.sol",
"jobs/IJobsManager.sol",
"rounds/IRoundsManager.sol",
"token/ILivepeerToken.sol",
"token/IMinter.sol",
"token/ITokenDistribution.sol",
"verification/IVerifiable.sol",
"verification/IVerifier.sol"
]
const miscFiles = ["token/MerkleMine.sol"] // Tests are here https://github.com/livepeer/merkle-mine/blob/master/test/MerkleMine.js so skip for this repo
module.exports = {
norpc: true,
testCommand: "node --max-old-space-size=4096 ../node_modules/.bin/truffle test test/unit/* --network coverage",
compileCommand: "node --max-old-space-size=4096 ../node_modules/.bin/truffle compile --network coverage",
copyPackages: ["zeppelin-solidity"],
skipFiles: testFiles.concat(mockFiles).concat(interfaces).concat(miscFiles)
}