Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 569 Bytes
SHELL := /bin/bash
file=*.test.js
unit_files=`find test/unit -name '$(file)' -type f -print0 | xargs -0 echo`
integration_files=`find test/integration -name '$(file)' -type f -print0 | xargs -0 echo`
test: setup test-unit test-integration
setup:
@[ -e ".fastlegs_pg" ] || node test/bootstrap/init_pg.js
@[ -e ".fastlegs_mysql" ] || node test/bootstrap/init_mysql.js
test-unit:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter spec \
$(unit_files)
test-integration:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter spec \
$(integration_files)
Something went wrong with that request. Please try again.