From f7451e9bd83e456b8562e4e9a19c8255326ded72 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 13 Jul 2012 10:30:46 +0200 Subject: [PATCH] Update after port to mocha --- test/README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/README.md b/test/README.md index 9e168198..ea52e44d 100644 --- a/test/README.md +++ b/test/README.md @@ -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) \ No newline at end of file +> mocha -u tdd test/unit/*.js (or run the tests individually)