mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
1.0 KiB
1.0 KiB
Running All Tests
Once you've installed BigchainDB Server, you may want to run all the unit and integration tests. This section explains how.
First of all, if you installed BigchainDB Server using pip (i.e. by getting the package from PyPI), then you didn't install the tests. Before you can run all the tests, you must install BigchainDB from source.
To run all the tests, first make sure you have RethinkDB running:
$ rethinkdb
then in another terminal, do:
$ python setup.py test
(Aside: How does the above command work? The documentation for pytest-runner explains. We use pytest to write all unit and integration tests.)
Using docker-compose to Run the Tests
You can also use docker-compose to run all the tests.
Start RethinkDB in the background:
$ docker-compose up -d rdb
then run the tests using:
$ docker-compose run --rm bdb py.test -v