File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
- .idea
2
1
* .iml
3
- node_modules
2
+ .idea
4
3
.tscache
4
+ .DS_Store
5
+ node_modules /
6
+ coverage /
5
7
test /typescript /axios.js *
6
8
Original file line number Diff line number Diff line change 4
4
on_success : never
5
5
before_script :
6
6
- npm install -g grunt-cli
7
+ after_success :
8
+ - npm run coveralls
Original file line number Diff line number Diff line change @@ -29,15 +29,20 @@ module.exports = function(config) {
29
29
// preprocess matching files before serving them to the browser
30
30
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
31
31
preprocessors : {
32
-
32
+ 'dist/axios.js' : 'coverage'
33
33
} ,
34
34
35
35
36
36
// test results reporter to use
37
37
// possible values: 'dots', 'progress'
38
38
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
39
- reporters : [ 'progress' ] ,
39
+ reporters : [ 'progress' , 'coverage' ] ,
40
40
41
+ coverageReporter : {
42
+ type : 'lcov' ,
43
+ dir : 'coverage/' ,
44
+ subdir : '.'
45
+ } ,
41
46
42
47
// web server port
43
48
port : 9876 ,
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"test" : " grunt test" ,
8
- "start" : " node ./sandbox/server.js"
8
+ "start" : " node ./sandbox/server.js" ,
9
+ "coveralls" : " cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
9
10
},
10
11
"repository" : {
11
12
"type" : " git" ,
28
29
"es6-promise" : " ^2.0.1"
29
30
},
30
31
"devDependencies" : {
32
+ "coveralls" : " ^2.11.2" ,
31
33
"grunt" : " ^0.4.5" ,
32
34
"grunt-banner" : " ^0.3.1" ,
33
35
"grunt-contrib-clean" : " ^0.6.0" ,
39
41
"grunt-update-json" : " ^0.2.1" ,
40
42
"grunt-webpack" : " ^1.0.8" ,
41
43
"karma" : " ^0.12.31" ,
44
+ "karma-coverage" : " ^0.2.7" ,
42
45
"karma-jasmine" : " ^0.3.5" ,
43
46
"karma-jasmine-ajax" : " ^0.1.12" ,
44
47
"karma-phantomjs-launcher" : " ^0.1.4" ,
You can’t perform that action at this time.
0 commit comments