The instructions have been written with reference to the 64-bit Ubuntu 14.04.2 operating system.
Other operating systems, or versions of these, may differ in how packages are installed, the versions of these packages available from package managers etc. Consult the relevant documentation for your operating system and the products concerned.
Some dependencies require you to have sudo access to install and configure software (or a local system administrator can do this for you).
This page assumes that pyenv is used to manage Python versions.
- Log in to [ProvStore](https://provenance.ecs.soton.ac.uk/st ore)
- Select Account => Developer Area
- You will see your API key
$ git clone https://github.com/prov-suite/service-tests
$ cd service-tests
$ pip install -r requirements.txt
Edit setenv.sh
, replacing user:12345qwert
with your ProvStore API key:
export PROVSTORE_API_KEY="user:12345qwert"
$ nosetests -v prov_service_tests
To run tests for a specific service:
$ nosetests -v prov_service_tests.test_provstore
$ nosetests -v prov_service_tests.test_provvalidator
If you are running on a multi-processor machine then the tests can run in parallel, using nosetests' support for parallel testing. Specify the number of processes you want to use using a --processes
flag e.g.
$ nosetests --processes=4 -v prov_service_tests