diff --git a/Makefile b/Makefile index b572bb2b..3f6ebf43 100644 --- a/Makefile +++ b/Makefile @@ -25,13 +25,9 @@ test: config/environments/test.js test/unit/cartodb/cache/model/*.js \ test/integration/*.js \ test/acceptance/*.js \ - test/acceptance/cache/*.js - -test-ported: config/environments/test.js - @echo "***tests ported***" - @$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \ - test/unit/cartodb/ported/*.js \ - test/acceptance/ported/*.js + test/acceptance/cache/*.js \ + test/acceptance/ported/*.js \ + test/unit/cartodb/ported/*.js test-unit: config/environments/test.js @echo "***tests***" @@ -54,7 +50,7 @@ jshint: @echo "***jshint***" @./node_modules/.bin/jshint lib/ test/ app.js -test-all: jshint test test-ported +test-all: jshint test coverage: @RUNTESTFLAGS=--with-coverage make test diff --git a/test/acceptance/ported/support/ported_server_options.js b/test/acceptance/ported/support/ported_server_options.js index b17eef6d..b4ca6a5a 100644 --- a/test/acceptance/ported/support/ported_server_options.js +++ b/test/acceptance/ported/support/ported_server_options.js @@ -58,6 +58,10 @@ module.exports = _.extend({}, serverOptions, { _.extend(req.params, req.query); req.params.user = 'localhost'; req.context = {user: 'localhost'}; + + req.params.dbhost = global.environment.postgres.host; + req.params.dbport = req.params.dbport || global.environment.postgres.port; + req.params.dbuser = 'test_windshaft_publicuser'; if (req.params.dbname !== 'windshaft_test2') { req.params.dbuser = 'test_windshaft_cartodb_user_1';