offshore-schema
Version:
The core schema builder used in the offshore ORM.
21 lines (17 loc) • 498 B
Plain Text
ROOT=$(shell pwd)
test: test-unit test-integration
test-unit:
@echo Running tests...
@NODE_ENV=test mocha test
test-integration:
@echo Running integration tests...
mkdir test_integration
cd test_integration; \
wget https://github.com/Atlantis-Software/offshore/archive/master.zip; \
unzip -q master.zip
cd test_integration/offshore-master; \
npm install; \
rm -rf node_modules/offshore-schema; \
ln -s $(ROOT) node_modules/offshore-schema; \
npm test
rm -rf test_integration