Skip to content

Commit

Permalink
WIP initial integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed May 23, 2014
1 parent 2da59be commit 064b91d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
"roots-util": "0.0.4",
"chai-fs": "0.0.3",
"mockery": "1.4.x",
"coffeelint": "1.3.x"
"coffeelint": "1.3.x",
"dill": "^0.3.0"
},
"scripts": {
"test": "npm run lint && mocha",
"test": "npm run lint && mocha && npm run integration",
"integration": "dill test/features --require test/steps/",
"lint": "find lib/ -name '*.coffee' | xargs coffeelint",
"coverage": "make build; istanbul cover _mocha --report html -- -R spec && open coverage/index.html && make unbuild",
"coveralls": "make build; istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage; make unbuild"
Expand Down
8 changes: 8 additions & 0 deletions test/features/live_reload.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Feature: Live reloading of the browser

Background:
Given I have a roots project

Scenario: Reloading on file change
When I add "wow such magic" to "index.jade"
Then I should see "wow such magic"
10 changes: 10 additions & 0 deletions test/steps/reloading.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Roots = require("../../")
When = require("when")

module.exports = ->
@Before -> Roots.template.remove('roots-base')

@Given /^I have a roots project$/, ->
Roots.new(
path: 'wow/test'
)

0 comments on commit 064b91d

Please sign in to comment.