Node v8 or higher
npm install
-
To run all tests:
npm test
-
To enable verbose mode:
npm test --v
ORnpm test --verbose
-
To run a specific test:
npm test -- test/QiibeeCrowdsale.js
There are also two environment variables (GEN_TESTS_QTY
and GEN_TESTS_TIMEOUT
) that regulate the duration/depth of the property-based tests, so for example:
GEN_TESTS_QTY=50 GEN_TESTS_TIMEOUT=300 npm test
will make the property-based tests in test/QiibeeCrowdsaleGenTest.js
to run 50 examples in a maximum of 5 minutes
Coverage has been disable because of conflicts with the different solidity versions of the contracts.
- Deploy qb-token contract and get the address
- Set environment variables:
ROPSTEN_PRIVATE_KEY
- private key of account you want to use to deploy with (omit0x
)INFURA_API_TOKEN
- your Infura API token
- Update values in
migrations/2_crowdsale_migration.js
- update token address with the address of the deployed
QiibeeToken
(in step 1) - update
_openingTime
- update
_closingTime
- update token address with the address of the deployed
qiibee Token is open source and distributed under the Apache License v2.0