From 723dc59490f774c680efb74ab19fa2a556c66d9d Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 23 Sep 2015 17:18:58 +0200 Subject: [PATCH] Show some redis stats after running tests By commenting out you can monitor to a file --- run_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index e7ea3a2c..e63a0492 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -24,7 +24,10 @@ cleanup() { return; fi fi + redis-cli -p ${REDIS_PORT} info stats + redis-cli -p ${REDIS_PORT} info keyspace echo "Killing test redis pid ${PID_REDIS}" + #kill ${PID_REDIS_MONITOR} kill ${PID_REDIS} fi if test x"$OPT_DROP_PGSQL" = xyes; then @@ -118,6 +121,9 @@ cd - PATH=node_modules/.bin/:$PATH +#redis-cli -p ${REDIS_PORT} monitor > /tmp/windshaft-cartodb.redis.log & +#PID_REDIS_MONITOR=$! + if test x"$OPT_COVERAGE" = xyes; then echo "Running tests with coverage" ./node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -u tdd -t 5000 ${TESTS}