Sandro Santilli
b736c228cf
Allow running with mocha only symlinked in node_modules
2014-01-31 10:11:34 +01:00
Sandro Santilli
76bd1bd37e
Add --nocreate-{pg,redis} and --nodrop-{pg,redis} opts in run_test.sh
2013-12-18 12:33:03 +01:00
Sandro Santilli
5bd0e02103
Read test redis port from configuration, default to 6335
2013-11-27 12:56:33 +01:00
Sandro Santilli
615151528c
Print ogr2ogr version when running tests
2013-09-04 15:15:47 +02:00
Sandro Santilli
7eff0cb107
Retain UTC offset in JSON output for dates
...
Hopefully helps reducing confusion when using timezone-less
with postgresql, in that the time that comes out of JSON output
matches the one input by user, except it may be in an unexpected
timezone (the server's one)
2013-06-19 12:25:48 +02:00
Sandro Santilli
e708d9bf8c
Raise mocha timeout to 5 seconds
...
.. still trying to please the jenkins setup
2013-04-11 16:54:55 +02:00
Sandro Santilli
491c549dcd
Fix exit code from test runner
...
Before this commit it would return success or failure only based
on whether cleanup was successful or bogus
2013-04-11 13:22:47 +02:00
Sandro Santilli
38e750e46d
Improve test runner: allow skipping preparation and specify testfiles
...
Call run_tests.sh with no args to get an help screen
2012-12-07 11:35:37 +01:00
Sandro Santilli
13b3b2f2ff
Don't hide errors during db preparation
2012-10-04 12:04:49 +02:00
Sandro Santilli
2a817fc70a
Re-enable pgsql unit test
...
Was intended to disabled by 86e1439c2c
but commenting out the middle of a multiline string resulted in a
wider testcases omission, due to:
test/run_tests.sh: 42: test/acceptance/app.test.js: Permission denied
2012-09-04 11:22:53 +02:00
Luis Bosque
86e1439c2c
Re-enabled the psql connections pooler. It is
...
essential.
Related to:
e36bfdef5b
2012-08-29 20:52:17 +02:00
Sandro Santilli
8fb65874f0
Fix hang in app.auth.test.js and enable running on make check
...
Closes #38 (yay!)
2012-07-16 13:41:44 +02:00
Sandro Santilli
adae0b483e
Enable app acceptance test (no hang with right pgsql version)
...
See issue #38
2012-07-13 11:13:20 +02:00
Sandro Santilli
e4f3a94256
Port tests to mocha. Closes #35 .
2012-07-13 10:29:09 +02:00
Sandro Santilli
538d9850a0
Reuse the same log file for both redis and db preparator
2012-07-12 22:55:34 +02:00
Sandro Santilli
0c0770bcd4
Enable psql test now that it doesn't hang anymore
2012-07-12 20:16:38 +02:00
Sandro Santilli
a307e1434e
Enable more tests (all the one succeeding for me). Closes #36
...
The metadata test was probably failing due to the redis_pool test
not waiting for redis to complete before exiting (or something
like that).
2012-07-12 18:21:39 +02:00
Sandro Santilli
debc0c2586
Run tests on "make check", using custom port for redis
...
Includes tweaks in the db preparation script and in the tests
for proper handling of async model. Only a single test is run
at the moment, being the only one that succeeded for me.
2012-07-12 18:10:56 +02:00