makefile can create a default test env file

This commit is contained in:
Ben West
2026-01-19 13:14:46 -08:00
parent 24f804d9bf
commit 293153d68d
+8
View File
@@ -29,6 +29,14 @@ DOCKER_IMAGE=nightscout/cgm-remote-monitor
all: test
my.test.env:
@echo "Creating my.test.env from Makefile defaults..."
@echo "MONGO_CONNECTION=${MONGO_CONNECTION}" > my.test.env
@echo "CUSTOMCONNSTR_mongo_collection=${CUSTOMCONNSTR_mongo_collection}" >> my.test.env
@echo "CUSTOMCONNSTR_mongo_settings_collection=${CUSTOMCONNSTR_mongo_settings_collection}" >> my.test.env
@echo "API_SECRET=test-secret-key" >> my.test.env
@echo "INSECURE_USE_HTTP=true" >> my.test.env
coverage:
NODE_ENV=test ${MONGO_SETTINGS} \
${ISTANBUL} cover ${MOCHA} -- --timeout 15000 -R tap ${TESTS}