Permalink
Browse files

test(e2e): LiveScript configuration

  • Loading branch information...
1 parent 88deebe commit 8e67f2eff3e6f8a9a6a72cfebc61751263be18f8 @czchen czchen committed with vojtajina Dec 24, 2013
Showing with 35 additions and 1 deletion.
  1. +1 −1 Gruntfile.coffee
  2. +1 −0 package.json
  3. +23 −0 test/e2e/live/karma.conf.ls
  4. +3 −0 test/e2e/live/plus.ls
  5. +7 −0 test/e2e/live/test.ls
View
@@ -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:
View
@@ -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"
@@ -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'
+ ]
View
@@ -0,0 +1,3 @@
+# Some code under test
+plus = (a, b) ->
+ a + b
View
@@ -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.