HannahCarney/till_tech_test

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
MOCHA_REPORTER = spec
UNIT_TESTS = $(shell find test/app -name "*.test.js")

# vim => :map ,f :w\|!clear && make cucumber<cr>
cucumber:
    @NODE_ENV=test node_modules/.bin/cucumber-js test/features \
        -r test/features/step_definitions

test-performance:

# vim => :map ,t :w\|!clear && make spec<cr>
spec:
    @NODE_ENV=test ./node_modules/.bin/mocha \
        --require should \
        --require sinon \
        --globals prop \
        --reporter $(MOCHA_REPORTER) \
        --slow 50 \
        --growl \
        $(UNIT_TESTS)

# vim => :map ,c :w\|!clear && make spec-client<cr>
spec-client:
    open test/client/SpecRunner.html

.PHONY: cucumber test-performance spec spec-client