node-postgres/Makefile
Brian Carlson af997d914b refactored test execution to use makefile
integration tests all running in the same process were stepping on eachother. each test file is now run within its own node process
2010-12-14 18:50:18 -06:00

19 lines
403 B
Makefile

SHELL := /bin/bash
user=postgres
password=1234
host=localhost
port=5432
database=postgres
test-unit:
@find test/unit -name "*-tests.js" | xargs -n 1 -I file node file
test-integration:
@find test/integration -name "*-tests.js" | xargs -n 1 -I file node file -u $(user) --password $(password) -p $(port) -d $(database) -h $(host)
test-all: test-unit test-integration
test: test-unit
.PHONY : test