Skip to content

Commit

Permalink
Integration tests: replace npm link with symbolic link to avoid cha…
Browse files Browse the repository at this point in the history
…nging the developer's workspace
  • Loading branch information
dmarcelino committed Mar 30, 2015
1 parent 4c694f9 commit d818faf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
ROOT=$(shell pwd)

test: test-unit test-integration

test-unit:
@echo Running tests...
@NODE_ENV=test mocha test

test-integration:
npm link
@echo Running integration tests...
mkdir test_integration
cd test_integration; \
wget https://github.com/balderdashy/waterline/archive/master.zip; \
unzip -q master.zip
cd test_integration/waterline-master; \
npm link waterline-schema; \
npm install; \
rm -rf node_modules/waterline-schema; \
ln -s $(ROOT) node_modules/waterline-schema; \
npm test
rm -rf test_integration

0 comments on commit d818faf

Please sign in to comment.