forked from sequelize/sequelize
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
150 changed files
with
23,884 additions
and
9,785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ test*.js | |
.DS_STORE | ||
node_modules | ||
npm-debug.log | ||
*~ | ||
*~ | ||
test/binary/tmp/* | ||
test/tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
REPORTER ?= dot | ||
TESTS = $(shell find ./test/* -name "*.test.js") | ||
DIALECT ?= mysql | ||
|
||
# test commands | ||
|
||
teaser: | ||
@echo "" && \ | ||
node -pe "Array(20 + '$(DIALECT)'.length + 3).join('#')" && \ | ||
echo '# Running tests for $(DIALECT) #' && \ | ||
node -pe "Array(20 + '$(DIALECT)'.length + 3).join('#')" && \ | ||
echo '' | ||
|
||
test: | ||
@make teaser && \ | ||
./node_modules/mocha/bin/mocha \ | ||
--colors \ | ||
--reporter $(REPORTER) \ | ||
$(TESTS) | ||
|
||
mariadb: | ||
@DIALECT=mariadb make test | ||
sqlite: | ||
@DIALECT=sqlite make test | ||
mysql: | ||
@DIALECT=mysql make test | ||
postgres: | ||
@DIALECT=postgres make test | ||
postgres-native: | ||
@DIALECT=postgres-native make test | ||
binary: | ||
@./test/binary/sequelize.test.bats | ||
|
||
# test aliases | ||
|
||
pgsql: postgres | ||
postgresn: postgres-native | ||
|
||
# test all the dialects \o/ | ||
|
||
all: sqlite mysql postgres postgres-native mariadb | ||
|
||
.PHONY: sqlite mysql postgres pgsql postgres-native postgresn all test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.