Skip to content

Commit

Permalink
Compiling code to pass through a coverage analysis with the --split
Browse files Browse the repository at this point in the history
option so files can be properly filtered
  • Loading branch information
arboleya committed Sep 7, 2013
1 parent a0ddbb3 commit c8092b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ www/vendors/lodash.js
# ignoring testable app's release folder
tests/www/probatus/public/app.js
tests/www/probatus/public/app.css
tests/www/probatus/public/__split__

# ignoring test files
tests/www/coverage
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.PHONY: docs

THE=bin/the
POLVO=node_modules/polvo/bin/polvo

SELENIUM=tests/www/services/selenium-server-standalone-2.35.0.jar
SAUCE_CONNECT=tests/www/services/Sauce-Connect.jar
CHROME_DRIVER=tests/www/services/chromedriver
Expand Down Expand Up @@ -112,9 +114,10 @@ test.build.prod:
@echo 'Building app before testing..'
@$(THE) -r --base tests/www/probatus > /dev/null

test.build.dev:
test.build.split:
@echo 'Compiling app before testing..'
@$(THE) -c --base tests/www/probatus > /dev/null
@# @$(THE) -c --base tests/www/probatus > /dev/null
@$(POLVO) -cxb tests/www/probatus > /dev/null


# TESTING LOCALLY
Expand All @@ -125,7 +128,7 @@ test: test.build.prod
--timeout 600000 \
tests/www/tests/runner.coffee --env='local'

test.coverage: test.build.dev
test.coverage: test.build.split
@$(MOCHA) --compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
Expand Down Expand Up @@ -158,7 +161,7 @@ test.saucelabs: test.build.prod
--timeout 600000 \
tests/www/tests/runner.coffee --env='sauce labs'

test.saucelabs.coverage: test.build.dev
test.saucelabs.coverage: test.build.split
@$(MOCHA) --compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
Expand Down

0 comments on commit c8092b4

Please sign in to comment.