<commit_before>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:
	@if [ "$$GREP" ]; then \
		make teaser && ./node_modules/mocha/bin/mocha --colors -t 10000 --reporter $(REPORTER) -g "$$GREP" $(TESTS); \
	else \
		make teaser && ./node_modules/mocha/bin/mocha --colors -t 10000 --reporter $(REPORTER) $(TESTS); \
	fi


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<commit_msg>Force mocha to check for global leaks<commit_after>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:
	@if [ "$$GREP" ]; then \
		make teaser && ./node_modules/mocha/bin/mocha --colors -t 10000 --check-leaks --reporter $(REPORTER) -g "$$GREP" $(TESTS); \
	else \
		make teaser && ./node_modules/mocha/bin/mocha --colors -t 10000 --check-leaks --reporter $(REPORTER) $(TESTS); \
	fi


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
{'fraction_non_alphanumeric': 0.16900093370681607, 'fraction_numerical': 0.014939309056956116, 'mean_word_length': 3.7941834451901566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1703242', 'n_tokens_mistral': 881, 'n_tokens_neox': 831, 'n_words': 215}