mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Renamed docs page 'Running Unit Tests' > 'Running All Tests'
This commit is contained in:
parent
dbe3c15d51
commit
8fe0ece001
@ -5,4 +5,4 @@ Develop & Test BigchainDB Server
|
|||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
setup-run-node
|
setup-run-node
|
||||||
running-unit-tests
|
running-all-tests
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# Running Unit Tests
|
# Running All Tests
|
||||||
|
|
||||||
Once you've installed BigchainDB Server, you may want to run all the unit tests. This section explains how.
|
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 unit tests, you must [install BigchainDB from source](setup-run-node.html#how-to-install-bigchaindb-from-source).**
|
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 unit tests, first make sure you have RethinkDB running:
|
To run all the tests, first make sure you have RethinkDB running:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ rethinkdb
|
$ rethinkdb
|
||||||
@ -16,12 +16,12 @@ then in another terminal, do:
|
|||||||
$ python setup.py test
|
$ 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 tests.)
|
(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
|
### Using docker-compose to Run the Tests
|
||||||
|
|
||||||
You can also use `docker-compose` to run the unit tests.
|
You can also use `docker-compose` to run all the tests.
|
||||||
|
|
||||||
Start `RethinkDB` in the background:
|
Start `RethinkDB` in the background:
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ Start `RethinkDB` in the background:
|
|||||||
$ docker-compose up -d rdb
|
$ docker-compose up -d rdb
|
||||||
```
|
```
|
||||||
|
|
||||||
then run the unit tests using:
|
then run the tests using:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ docker-compose run --rm bdb py.test -v
|
$ docker-compose run --rm bdb py.test -v
|
Loading…
x
Reference in New Issue
Block a user