This repo contains the plugins to create the Sovrin payment ledger plugins: Token and Fees
run the following command:
./build_indy_pool
We provide a docker environment that comes pre-loaded with all required dependencies and consider this to be the easiest way for any new developer to get setup and start testing their code.
- docker
- docker-compose
- docker-sync
- ruby
- gem
gem install docker-sync
PLEASE OPEN TWO TERMINAL WINDOWS
In the first window:
make start
This will run docker-sync-stack start. It will compose the docker container and mount your local directory.
In the second window:
make deps
make setup
This will fix config files and install sovtoken and sovtoken fees
Now we run our test:
make test
when you're all done using sync just use:
make clean
To use this script, you will need to use make as instructed above. Once you have the docker image running and synchronized, you can use run-test.sh to run individual tests.
We have a shell script to assist with running tests. Here's an example:
./run-test.sh token test_token_req_handler test_token_req_handler_MINT_PUBLIC_validate_missing_output
The first parameter is required. It can be either token or fees. Anything else will return an error.
The remaining parameters are optional.
The second parameter is file name without the .py.
The third parameter is the name of the test.
-
To run all sovtoken tests call it like this:
./run-test.sh token
-
To run all sovtoken tests in a file, call it like this:
./run-test.sh token test_token_req_handler
Please follow the guide here.