Open bnchdrff opened 11 years ago
Thanks!
Failed test 1 is an AWS email error and expected if there isn't a valid AWS key or if Amazon SES isn't provisioned.
Tests 2-8 above will fail if you don't have any data in the database. We should ship a SQL file with sample data (see #97) to fix those errors.
9 is probably a bug in file uploading. We may not handle a situation where there is an invalid S3 key correctly.
As far as I know, these shouldn't prevent other core parts of the system (eg using the dashboard to create surveys) from working, or the server from starting.
awesome... good deal. i added a TEST_EMAIL env var to setenv_local.sh and settings-test.sh so devs can specify whatever email they use with SES - pushing commit now
For error 10 above, can you confirm that:
localdata-mobile-web
) accessible through a web server (probably localhost...
)REMOTE_MOBILE_PREFIX
environment variable is set to that address?The error is in tests/static.js
, and my guess is that the mobile site is unreachable.
i didn't have the mobile server running during tests, so 10 is an easy fix :grinning:
Cool. You should be able to skip mobile for now if you'd like, especially if you're just developing on the API.
Could the tests insert and delete the postgis data as a fixture?
Requested in #109
What I did:
ppa:ubuntugis/ppa
CREATE EXTENSION postgis
andCREATE EXTENSION postgis_topology
in new db as pg user./node_modules/mocha/bin/mocha --ui tdd --reporter spec
What I got: