Skip to content

Commit

Permalink
test(e2e): LiveScript configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
czchen authored and vojtajina committed Jan 19, 2014
1 parent 88deebe commit 8e67f2e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.coffee
Expand Up @@ -30,7 +30,7 @@ module.exports = (grunt) ->
test:
unit: 'simplemocha:unit'
client: 'test/client/karma.conf.js'
e2e: ['test/e2e/*/karma.conf.js', 'test/e2e/*/karma.conf.coffee']
e2e: ['test/e2e/*/karma.conf.js', 'test/e2e/*/karma.conf.coffee', 'test/e2e/*/karma.conf.ls']

watch:
client:
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -156,6 +156,7 @@
"karma-phantomjs-launcher": "*",
"karma-ng-scenario": "*",
"karma-coffee-preprocessor": "*",
"karma-live-preprocessor": "*",
"karma-html2js-preprocessor": "*",
"karma-browserstack-launcher": "*",
"LiveScript": "~1.2.0"
Expand Down
23 changes: 23 additions & 0 deletions test/e2e/live/karma.conf.ls
@@ -0,0 +1,23 @@
module.exports = (config) ->
config.set do
frameworks: ['jasmine']

files: [
'*.ls'
]

autoWatch: true

browsers: [if process.env.TRAVIS then 'Firefox' else 'Chrome']

preprocessors:
'**/*.ls': 'live'

reporters: ['dots']

plugins: [
'karma-jasmine'
'karma-live-preprocessor'
'karma-chrome-launcher'
'karma-firefox-launcher'
]
3 changes: 3 additions & 0 deletions test/e2e/live/plus.ls
@@ -0,0 +1,3 @@
# Some code under test
plus = (a, b) ->
a + b
7 changes: 7 additions & 0 deletions test/e2e/live/test.ls
@@ -0,0 +1,7 @@
describe 'plus', (,) ->

it 'should pass', ->
expect(true).toBe true

it 'should work', ->
expect(plus 1, 2).toBe 3

0 comments on commit 8e67f2e

Please sign in to comment.