Moved dev-and-test/running-all-tests.md content to tests/README.md

This commit is contained in:
troymc
2016-12-18 11:41:04 +01:00
parent 8fe0ece001
commit ae236d9f23
2 changed files with 30 additions and 45 deletions

View File

@@ -1,36 +1,3 @@
# 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](setup-run-node.html#how-to-install-bigchaindb-from-source).**
To run all the tests, first make sure you have RethinkDB running:
```text
$ rethinkdb
```
then in another terminal, do:
```text
$ python setup.py test
```
(Aside: How does the above command work? The documentation for [pytest-runner](https://pypi.python.org/pypi/pytest-runner) explains. We use [pytest](http://docs.pytest.org/en/latest/) 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:
```text
$ docker-compose up -d rdb
```
then run the tests using:
```text
$ docker-compose run --rm bdb py.test -v
```
All documentation about writing and running tests (unit and integration tests) was moved to [the file `bigchaindb/tests/README.md`](https://github.com/bigchaindb/bigchaindb/blob/master/tests/README.md).