mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
test update
This commit is contained in:
parent
db84c707e1
commit
fe89033310
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ backend/*.js.map
|
|||||||
common/*/*.js
|
common/*/*.js
|
||||||
common/*/*.js.map
|
common/*/*.js.map
|
||||||
test/coverage
|
test/coverage
|
||||||
|
.coveralls.yml
|
@ -27,12 +27,8 @@ module.exports = function(config) {
|
|||||||
webpack: testWebpackConfig,
|
webpack: testWebpackConfig,
|
||||||
|
|
||||||
coverageReporter: {
|
coverageReporter: {
|
||||||
dir : 'coverage/',
|
type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
|
||||||
reporters: [
|
dir: 'coverage/'
|
||||||
{ type: 'text-summary' },
|
|
||||||
{ type: 'json' },
|
|
||||||
{ type: 'html' }
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Webpack please don't spam the console when running in karma!
|
// Webpack please don't spam the console when running in karma!
|
||||||
@ -41,7 +37,7 @@ module.exports = function(config) {
|
|||||||
// test results reporter to use
|
// test results reporter to use
|
||||||
// possible values: 'dots', 'progress'
|
// possible values: 'dots', 'progress'
|
||||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||||
reporters: [ 'mocha', 'coverage' ],
|
reporters: [ 'mocha', 'coverage', 'coveralls' ],
|
||||||
|
|
||||||
// web server port
|
// web server port
|
||||||
port: 9876,
|
port: 9876,
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"homepage": "https://github.com/bpatrik/PiGallery2",
|
"homepage": "https://github.com/bpatrik/PiGallery2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack -p",
|
"build": "webpack -p && tsc -p backend",
|
||||||
"test": "karma start ./karma.conf.js",
|
"test": "karma start ./karma.conf.js",
|
||||||
"start": "node ./backend/server"
|
"start": "node ./backend/server"
|
||||||
},
|
},
|
||||||
@ -43,6 +43,7 @@
|
|||||||
"karma": "^0.13.21",
|
"karma": "^0.13.21",
|
||||||
"karma-chrome-launcher": "^0.2.2",
|
"karma-chrome-launcher": "^0.2.2",
|
||||||
"karma-coverage": "^0.5.3",
|
"karma-coverage": "^0.5.3",
|
||||||
|
"karma-coveralls": "^1.1.2",
|
||||||
"karma-jasmine": "^0.3.7",
|
"karma-jasmine": "^0.3.7",
|
||||||
"karma-mocha-reporter": "^2.0.0",
|
"karma-mocha-reporter": "^2.0.0",
|
||||||
"karma-phantomjs-launcher": "^1.0.0",
|
"karma-phantomjs-launcher": "^1.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user