This project utilizes Truffle Suite to automate testing.
You will need to install Truffle:
npm install truffle -g
and Ganache CLI:
npm install -g ganache-cli
Once installed, run Ganache CLI in a terminal:
My-Comp:~ johndoe$ ganache-cli
Then, from the root of this project, run the tests:
truffle test
You can test SwipeIWO contract by forking mainnet into local.
You will need to copy start.sh.example
to start.sh
in root directory.
And please add your infura id and mnemonic.
Then, from the root of this project, run the tests:
sh ./start.sh
truffle test
or
truffle test ./test/SwipeIWO.test.js