Tests require Java 1.8 and Maven.
Command to run tests:
mvn clean test -f pom-qa.xml
Available options:
-Dgenesis.file=PATH_TO_GENESIS_FILEstarts test with custom genesis file, default isgenesis.jsonin working directory,-Dcucumber.optionssets cucumber framework options, could be used to specify test category,-Dis.docker:- 0 - (default) test with local binary (must be added to PATH),
- 1 - test on Docker,
- -
Ddir.datasets directory in which is stored nodes and users data, default is/ads-data.
Available test categories are:
account- change account key, and create account in local and remote node,broadcast- broadcast message,dry_run- dry-run option, includes transfer with signature generated by other user,fee_sharing- checkprofit_sharedvalue from log,function- check other function:get_accounts,log_account,
node- change node key, create node,non_existent- transaction to non-existent user or node,retrieve_funds- funds retrieval from inactive account,status- change account/node status,transfer- local and remote transfers, both groups have detail categoriestransfer_localandtransfer_remote,vip_key- check vip keys.
By default all tests will be run. To run specific category of tests cucumber.options must be defined. Below is example to run transfer tests:
mvn clean test -f pom-qa.xml -Dcucumber.options="--tags @transfer"