Skip to content

Commit

Permalink
wow need to increase coverage by a lot...
Browse files Browse the repository at this point in the history
  • Loading branch information
pocesar committed Aug 9, 2015
1 parent 53ce292 commit 64dd3c0
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ before_install:
before_script:
- npm install bower karma-cli -g
- bower install

script: npm run travis

after_success: NODE_ENV=test cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/pocesar/angular-errorlookup.svg?branch=master)](https://travis-ci.org/pocesar/angular-errorlookup?branch=master)
[![Build Status](https://travis-ci.org/pocesar/angular-errorlookup.svg?branch=master)](https://travis-ci.org/pocesar/angular-errorlookup?branch=master) [![Coverage Status](https://coveralls.io/repos/pocesar/angular-errorlookup/badge.svg?branch=master&service=github)](https://coveralls.io/github/pocesar/angular-errorlookup?branch=master)

AngularJS ErrorLookup
===================
Expand Down
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"name": "angular-errorlookup",
"version": "0.2.0",
"version": "0.2.1",
"description": "Because AngularJS general error messages still suck. ngMessages can kiss my ass.",
"main": "./angular-lookup.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"coverage",
"test",
"typings",
"tsconfig.json",
".travis.yml",
"tsd.json"
],
"dependencies": {
"angular": ">=1.3||<1.5",
"angular": ">=1.3 <1.5",
"lodash": "3.x",
"jquery": "2.x"
},
"devDependencies": {
"angular-mocks": ">=1.3||<1.5",
"angular-mocks": ">=1.3 <1.5",
"chai":"*"
}
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name":"angular-errorlookup",
"version":"0.2.0",
"version":"0.2.1",
"description": "Because AngularJS general error messages still suck. ngMessages can kiss my ass.",
"main": "./angular-lookup.js",
"main": "./angular-errorlookup.js",
"license": "MIT",
"repository":{
"type":"git",
Expand All @@ -23,15 +23,18 @@
"form"
],
"devDependencies":{
"coveralls": "2.x",
"karma":"0.13.x",
"mocha": "*",
"karma-coverage": "0.x",
"karma-firefox-launcher":"*",
"karma-mocha":"*",
"karma-spec-reporter":"*",
"browserify": "11.x",
"tsify": "0.x"
},
"scripts":{
"travis": "karma start ./test/karma.conf.js --single-run",
"test": "karma start ./test/karma.conf.js",
"build": "browserify angular-errorlookup.ts -p [ tsify ] > angular-errorlookup.js",
"dorelease": "npm publish ."
Expand Down
24 changes: 21 additions & 3 deletions test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,32 @@ module.exports = function (config){
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'angular-errorlookup.js',
'test/test.js'
'test/*.test.js'
],

exclude : [],

proxies : {},

reporters : ['spec'],
reporters : ['spec','coverage'],

preprocessors: {
'angular-errorlookup.js': ['coverage']
},

coverageReporter: {
reporters: [
{ type: 'html', dir:'coverage/' },
{ type: 'lcovonly', dir:'coverage/', subdir: '.', file: 'lcov.info' }
]
},

client: {
captureConsole: true,
mocha: {
ui: 'bdd'
}
},

port : 9876,

Expand All @@ -32,6 +50,6 @@ module.exports = function (config){

captureTimeout: 60000,

singleRun : true
singleRun : false
});
};
File renamed without changes.

0 comments on commit 64dd3c0

Please sign in to comment.