ngrid-electric-login
Version:
Login to the NGrid Electric website using curl
18 lines (16 loc) • 700 B
Plain Text
MOCHA=node_modules/.bin/mocha
REPORTER?=tap
config?=test/config.json
test: unit integration
unit:
$(MOCHA) $(shell find test/* -prune -name "*-test.js") --config=$(config) --reporter $(REPORTER)
wiring:
$(MOCHA) test/wiring-test.js --reporter $(REPORTER)
get-sign-in-page-data-wiring:
$(MOCHA) test/get-sign-in-page-data-wiring-test.js --reporter $(REPORTER)
# Integration tests
integration:
$(MOCHA) $(shell find test/integration/* -prune -name "*-test.js") --config=$(config) --username=$(username) --password=$(password) --reporter $(REPORTER)
perform-login:
$(MOCHA) test/integration/perform-login-test.js --username=$(username) --password=$(password) --reporter $(REPORTER)