mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Document how to run tests for mongodb with docker
This commit is contained in:
parent
4994e30f0c
commit
4c8d1c6e8c
@ -68,6 +68,8 @@ The `pytest` command has many options. If you want to learn about all the things
|
||||
|
||||
You can also use [Docker Compose](https://docs.docker.com/compose/) to run all the tests.
|
||||
|
||||
#### With RethinkDB as the backend
|
||||
|
||||
First, start `RethinkDB` in the background:
|
||||
|
||||
```text
|
||||
@ -80,14 +82,29 @@ then run the tests using:
|
||||
$ docker-compose run --rm bdb py.test -v
|
||||
```
|
||||
|
||||
If you've upgraded to a newer version of BigchainDB, you might have to rebuild the images before
|
||||
being able to run the tests. Run:
|
||||
#### With MongoDB as the backend
|
||||
|
||||
First, start `MongoDB` in the background:
|
||||
|
||||
```text
|
||||
$ docker-compose up -d mdb
|
||||
```
|
||||
|
||||
then run the tests using:
|
||||
|
||||
```text
|
||||
$ docker-compose run --rm bdb-mdb py.test -v
|
||||
```
|
||||
|
||||
If you've upgraded to a newer version of BigchainDB, you might have to rebuild
|
||||
the images before being able to run the tests. Run:
|
||||
|
||||
```text
|
||||
$ docker-compose build
|
||||
```
|
||||
|
||||
to rebuild all the images (usually you only need to rebuild the `bdb` image).
|
||||
to rebuild all the images (usually you only need to rebuild the `bdb` and
|
||||
`bdb-mdb` images).
|
||||
|
||||
## Automated Testing of All Pull Requests
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user