etherlime coverage
Syntax
etherlime coverage [path] [timeout] [port] [solcVersion]
[workingDirectory] [html] [ignoreFiles]Workflow of etherlime coverage
The
coveragecommand copy all test files from test directory to.coverage_teststemporary directoryThe
coveragecommand copy all contract files from contract directory to.coverage_contractstemporary directoryAll contract files are builded without optimization from temporary directory and saved to
.coverage_artifactsdirectoryAll test files are run,
coveragefolder is created with the result and all temporary directories are deleted.
Parameters:
path- [Optional] By specifyingpathyou can set a path to aselected directory or you can set the path directly to the
javascript file which contains your tests. By default the
pathpoints to
./test.timeout- [Optional] This parameter defines the test timeout inmilliseconds. Defaults to 2000 ms.
port- [Optional] The port to run the solidity coverage testrpc(compatible with etherlime ganache deployer). Default: 8545.
solcVersion- [Optional] By specifyingsolcVersionyou canchoose a specific solc version to be used for compilation and
coverage reports.
workingDirectory- [Optional] Defines the folder to use forreading contracts from, instead of the default one: ./contracts
html- [Optional] By specifyinghtmlyou can choose either toopen automatically with you default browser the html coverage report
located in:
./coverage. Defaults tofalse.ignoreFiles- [Optional] By specifyingignoreFilesyou can set filesthat would be omitted in coverage report. List them separated with comma. By
default all files imported from `./node-modules' are ignored.
gasPrice- [Optional] By specifyinggasPriceyou can specify the price of gas in wei. Defaults to20000000000.gasLimit- [Optional] By specifyinggasLimityou can specify the block gas limit. Defaults to6721975.
Last updated
Was this helpful?