|
|
@ -98,6 +98,7 @@ task("coverage", "Generates a code coverage report for tests") |
|
|
|
.addOptionalParam("solcoverjs", ui.flags.solcoverjs, "", types.string) |
|
|
|
.addOptionalParam("solcoverjs", ui.flags.solcoverjs, "", types.string) |
|
|
|
.addOptionalParam('temp', ui.flags.temp, "", types.string) |
|
|
|
.addOptionalParam('temp', ui.flags.temp, "", types.string) |
|
|
|
.addFlag('matrix', ui.flags.testMatrix) |
|
|
|
.addFlag('matrix', ui.flags.testMatrix) |
|
|
|
|
|
|
|
.addFlag('abi', ui.flags.abi) |
|
|
|
.setAction(async function(args, env){ |
|
|
|
.setAction(async function(args, env){ |
|
|
|
|
|
|
|
|
|
|
|
const API = require('./../lib/api'); |
|
|
|
const API = require('./../lib/api'); |
|
|
@ -141,6 +142,16 @@ task("coverage", "Generates a code coverage report for tests") |
|
|
|
} |
|
|
|
} |
|
|
|
env.hardhatArguments = Object.assign(env.hardhatArguments, flags) |
|
|
|
env.hardhatArguments = Object.assign(env.hardhatArguments, flags) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ===========================
|
|
|
|
|
|
|
|
// Generate abi diff component
|
|
|
|
|
|
|
|
// (This flag only useful within codecheck context)
|
|
|
|
|
|
|
|
// ===========================
|
|
|
|
|
|
|
|
if (args.abi){ |
|
|
|
|
|
|
|
measureCoverage = false; |
|
|
|
|
|
|
|
await nomiclabsUtils.generateHumanReadableAbiList(env, api, TASK_COMPILE); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ================
|
|
|
|
// ================
|
|
|
|
// Instrumentation
|
|
|
|
// Instrumentation
|
|
|
|
// ================
|
|
|
|
// ================
|
|
|
|