Permalink
Browse files

Add coffeelint step in testing. Fix codestyle

  • Loading branch information...
1 parent 029a579 commit a33676a18251593e72be7d44a1986ac361a1272d @cybertk committed with galk-in Dec 14, 2014
Showing with 24 additions and 4 deletions.
  1. +12 −0 Gruntfile.coffee
  2. +7 −0 coffeelint.json
  3. +1 −0 package.json
  4. +1 −1 test/unit/abao-test.coffee
  5. +2 −2 test/unit/test-runner-test.coffee
  6. +1 −1 test/unit/test-test.coffee
View
@@ -21,6 +21,17 @@ module.exports = (grunt) ->
options:
nospawn: true
+ coffeelint:
+ default:
+ src: [
+ 'Gruntfile.coffee'
+ 'src/**/*.coffee'
+ 'test/**/*.coffee'
+ ]
+ options: {
+ configFile: 'coffeelint.json'
+ }
+
coffeecov:
compile:
src: 'lib'
@@ -53,6 +64,7 @@ module.exports = (grunt) ->
]
grunt.registerTask "test", [
+ "coffeelint"
"coffeecov"
"mochaTest"
"uploadCoverage"
View
@@ -0,0 +1,7 @@
+{
+ "max_line_length": {
+ "value": 120,
+ "level": "error",
+ "limitComments": true
+ }
+}
View
@@ -33,6 +33,7 @@
"grunt": "~0.4.5",
"grunt-cli": "~0.1.13",
"grunt-coffeecov": "^0.1.5",
+ "grunt-coffeelint": "^0.0.15",
"grunt-contrib-watch": "~1.0.0",
"grunt-mocha-test": "~0.12.7",
"grunt-shell": "^1.1.2",
@@ -21,7 +21,7 @@ Abao = proxyquire '../../', {
}
should = chai.should()
-chai.use(sinonChai);
+chai.use(sinonChai)
describe 'Abao', ->
@@ -21,7 +21,7 @@ SERVER = 'http://localhost:3000'
assert = chai.assert
should = chai.should()
-chai.use(sinonChai);
+chai.use(sinonChai)
runner = null
@@ -170,7 +170,7 @@ describe 'Test Runner', ->
runner = new TestRunner options
sinon.stub test, 'run', (callback) ->
- callback()
+ callback()
# Mute stdout/stderr
mute (unmute) ->
@@ -6,7 +6,7 @@ proxyquire = require('proxyquire').noCallThru()
assert = chai.assert
should = chai.should()
-chai.use(sinonChai);
+chai.use(sinonChai)
requestStub = sinon.stub()
requestStub.restore = () ->

0 comments on commit a33676a

Please sign in to comment.