forked from thales-markets/contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.solcover.js
33 lines (32 loc) · 946 Bytes
/
.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
const {
constants: { inflationStartTimestampInSecs },
} = require('.');
module.exports = {
port: 8545,
skipFiles: [
'PositionalMarketData.sol',
'OwnedWithInit.sol',
'test-helpers',
'PositionalMarketMastercopy.sol',
'PositionMastercopy.sol',
'SafeBox.sol',
'SafeBoxBuyback.sol',
'utils/libraries/DateTime.sol',
'utils/libraries/SafeCast.sol',
],
providerOptions: {
default_balance_ether: 10000000000000, // extra zero just in case (coverage consumes more gas)
time: new Date(inflationStartTimestampInSecs * 1000),
network_id: 55,
},
mocha: {
grep: '@cov-skip', // Find everything with this tag
invert: true, // Run the grep's inverse set.
timeout: 360e3,
},
// Reduce instrumentation footprint - volume of solidity code
// passed to compiler causes it to crash (See discussion PR #732)
// Line and branch coverage will still be reported.
measureStatementCoverage: false,
configureYulOptimizer: true,
};