|
| 1 | +module.exports = { |
| 2 | + skipFiles: [ |
| 3 | + // Skip test contracts |
| 4 | + "testing/", |
| 5 | + |
| 6 | + // Skip echidna/fuzzing contracts |
| 7 | + "echidna/", |
| 8 | + |
| 9 | + // Skip utility contracts that are only used for deployment |
| 10 | + "utils/PushNativeToken.sol", |
| 11 | + |
| 12 | + // Skip dependencies |
| 13 | + "Deps.sol", |
| 14 | + ], |
| 15 | + |
| 16 | + // Automatically include all test files (scalable approach) |
| 17 | + // testfiles: "./test/**/*.ts" - would include all, but we exclude helpers |
| 18 | + // For maximum flexibility, remove testfiles entirely to run all tests |
| 19 | + // Or use glob pattern to include specific patterns |
| 20 | + |
| 21 | + // Measure coverage for statements, branches, functions, and lines |
| 22 | + measureStatementCoverage: true, |
| 23 | + measureFunctionCoverage: true, |
| 24 | + measureBranchCoverage: true, |
| 25 | + measureLineCoverage: true, |
| 26 | + |
| 27 | + // Optionally configure which networks to use for coverage |
| 28 | + // providerOptions: { |
| 29 | + // default_balance_ether: '10000000000000000000000000', |
| 30 | + // }, |
| 31 | + |
| 32 | + // Optionally set which mocha reporter to use |
| 33 | + mocha: { |
| 34 | + grep: "@skip-on-coverage", // Filter describe/it with this comment |
| 35 | + invert: true // Run everything except those with @skip-on-coverage |
| 36 | + }, |
| 37 | + |
| 38 | + // Configure Istanbul (the underlying coverage tool) |
| 39 | + istanbulReporter: ["html", "lcov", "text", "json"], |
| 40 | +}; |
0 commit comments