blob: 9eae278b142611ff59d28bcc94ccfc49d70f4a92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Mango Tests
===========
CouchDB should be started with `./dev/run -a testuser:testpass`.
To run these, do this in the Mango top level directory:
$ python3 -m venv venv
$ . venv/bin/activate
$ pip3 install -r requirements.txt
$ venv/bin/nosetests
To run an individual test suite:
nosetests --nocapture test/12-use-correct-index.py
To run the tests with text index support:
MANGO_TEXT_INDEXES=1 nosetests --nocapture test
Test configuration
==================
The following environment variables can be used to configure the test fixtures:
* `COUCH_HOST` - root url (including port) of the CouchDB instance to
run the tests against. Default is `"http://127.0.0.1:15984"`.
* `COUCH_USER` - CouchDB username (with admin premissions). Default
is `"adm"`.
* `COUCH_PASSWORD` - CouchDB password. Default is `"pass"`.
* `COUCH_AUTH_HEADER` - Optional Authorization header value. If
specified, this is used instead of basic authentication with the
username/password variables above.
* `MANGO_TEXT_INDEXES` - Set to `"1"` to run the tests only
applicable to text indexes.
|