Update after port to mocha

This commit is contained in:
Sandro Santilli 2012-07-13 10:30:46 +02:00
parent e4f3a94256
commit f7451e9bd8

View File

@ -2,17 +2,20 @@ cartodb-sql-api tests
---------------------
Tests require you create a test database and set some redis keys before,
you can execute prepare_db.sh script, it will create database, users
and redis stuff for you. Be sure postgres and redis are running
and redis stuff for you. Be sure postgres and redis are running.
> cd test && ./prepare_db.sh
Note that "make check" from top-level dir will try to do everything
needed to prepare & run the tests.
Acceptance tests (need ctrl-C to exit)
--------------------------------------
> expresso test/acceptance/app.test.js
> expresso test/acceptance/app.auth.test.js
> mocha -u tdd test/acceptance/app.test.js
> mocha -u tdd test/acceptance/app.auth.test.js
Unit tests (need ctrl-C to exit)
Unit tests
--------------------------------
> expresso test/unit/*.js (or run the tests individually)
> mocha -u tdd test/unit/*.js (or run the tests individually)