2016-05-13 02:21:31 +08:00
|
|
|
## Automatic tests and utilities
|
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
Python 2.7 should cover you. Virtualenv recommended.
|
|
|
|
|
|
|
|
virtualenv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
|
|
### Execution
|
|
|
|
|
2016-05-18 00:25:44 +08:00
|
|
|
Currently, we don't have direct access to the metadata end-to-end. This only
|
|
|
|
affects the generation of tests. As a stopgap, we have to define a connection
|
|
|
|
to the test Observatory account.
|
|
|
|
|
2016-05-13 02:21:31 +08:00
|
|
|
Run automated tests against a hostname:
|
|
|
|
|
2016-05-18 01:32:46 +08:00
|
|
|
(venv) OBS_HOSTNAME=<hostname.cartodb.com> OBS_API_KEY=<api_key> OBS_META_HOSTNAME=observatory.cartodb.com OBS_META_API_KEY= nosetests scripts/autotest.py
|