1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-25 02:04:15 +02:00

test update

This commit is contained in:
Braun Patrik 2016-03-13 19:57:40 +01:00
parent db84c707e1
commit fe89033310
3 changed files with 6 additions and 8 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ backend/*.js.map
common/*/*.js
common/*/*.js.map
test/coverage
.coveralls.yml

View File

@ -27,12 +27,8 @@ module.exports = function(config) {
webpack: testWebpackConfig,
coverageReporter: {
dir : 'coverage/',
reporters: [
{ type: 'text-summary' },
{ type: 'json' },
{ type: 'html' }
]
type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
dir: 'coverage/'
},
// Webpack please don't spam the console when running in karma!
@ -41,7 +37,7 @@ module.exports = function(config) {
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: [ 'mocha', 'coverage' ],
reporters: [ 'mocha', 'coverage', 'coveralls' ],
// web server port
port: 9876,

View File

@ -7,7 +7,7 @@
"homepage": "https://github.com/bpatrik/PiGallery2",
"license": "MIT",
"scripts": {
"build": "webpack -p",
"build": "webpack -p && tsc -p backend",
"test": "karma start ./karma.conf.js",
"start": "node ./backend/server"
},
@ -43,6 +43,7 @@
"karma": "^0.13.21",
"karma-chrome-launcher": "^0.2.2",
"karma-coverage": "^0.5.3",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "^0.3.7",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.0",