-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.solcover.js
39 lines (36 loc) · 1.35 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const { accountsList } = require("./hardhatAccountsList2k.js");
// syntax for solcover network (ganache based) is different:
// https://hardhat.org/plugins/solidity-coverage.html#configuration
// Link in providerOptions:
// https://github.com/trufflesuite/ganache-core#options
const accounts = accountsList.map(a => ({ secretKey: a.privateKey, balance: '0xc097ce7bc90715b34b9f1000000000' }))
module.exports = {
providerOptions: {
accounts
},
// Improve performance by skipping statements and functions. Tool still checks lines of code and branches:
// https://github.com/sc-forks/solidity-coverage/blob/master/docs/advanced.md
//measureStatementCoverage: false,
//measureFunctionCoverage: false,
skipFiles: [
"TestContracts/",
"MultiTroveGetter.sol",
"Migrations.sol",
"Interfaces/",
"LPRewards/Dependencies/",
"LPRewards/TestContracts/",
"Dependencies/Context.sol",
"Dependencies/IERC20.sol",
"Dependencies/IERC2612.sol",
"Dependencies/Math.sol",
"Dependencies/Ownable.sol",
"Dependencies/SafeMath.sol",
"Dependencies/SafeMath128.sol",
"Dependencies/console.sol",
],
// https://github.com/sc-forks/solidity-coverage/blob/master/docs/advanced.md#skipping-tests
mocha: {
grep: "@skip-on-coverage", // Find everything with this tag
invert: true // Run the grep's inverse set.
}
};