etherlime coverage
Syntax
Workflow of etherlime coverage
The
coverage
command copy all test files from test directory to.coverage_tests
temporary directoryThe
coverage
command copy all contract files from contract directory to.coverage_contracts
temporary directoryAll contract files are builded without optimization from temporary directory and saved to
.coverage_artifacts
directoryAll test files are run,
coverage
folder is created with the result and all temporary directories are deleted.
Parameters:
path
- [Optional] By specifyingpath
you 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
path
points 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 specifyingsolcVersion
you 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 specifyinghtml
you can choose either toopen automatically with you default browser the html coverage report
located in:
./coverage
. Defaults tofalse
.ignoreFiles
- [Optional] By specifyingignoreFiles
you 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 specifyinggasPrice
you can specify the price of gas in wei. Defaults to20000000000
.gasLimit
- [Optional] By specifyinggasLimit
you can specify the block gas limit. Defaults to6721975
.
Last updated