From f0721bd5c10034f9ba7cb4c9444e323cc6bf73cb Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 19 Jan 2021 14:55:27 +0530 Subject: [PATCH] custom runs option added --- libs/remix-tests/src/run.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/remix-tests/src/run.ts b/libs/remix-tests/src/run.ts index c0cb4cc329..dbaf04c09e 100644 --- a/libs/remix-tests/src/run.ts +++ b/libs/remix-tests/src/run.ts @@ -103,6 +103,15 @@ commander log.info(`Optimization is ${compilerConfig.optimize ? 'enabled' : 'disabled'}`) } + if (commander.runs) { + if(!commander.optimize) { + log.error(`Optimization should be enabled for runs`) + process.exit() + } + compilerConfig.runs = commander.runs + log.info(`Runs set to ${compilerConfig.runs}`) + } + const web3 = new Web3() const provider: any = new Provider() await provider.init()