The test suite can be run manually, and is automatically run by Travis CI on each code push.
To run the tests manually, you need to install Docker CE, and run the test script from a bash compatible shell (eg. Git bash on Windows) like this:
./ci/build-and-test.sh
The test suite performs the following tasks:
- Build the latest code
- Verify the basic neo-cli functionality using expect
- Verify JSON-RPC functionality with curl
Files:
Dockerfile
: the system to build neo-cli and to run the testsbuild-and-test.sh
: this builds the Docker image, starts it and runs the tests inside. This is useful for testing the CI run on a local dev machine.run-tests-in-docker.sh
: is run inside the Docker container and executes the teststest-neo-cli.expect
: expect script which verifies neo-cli functionality