Updated karma test reporters

This commit is contained in:
jacobawenger
2014-09-03 22:37:19 -07:00
parent e675e05f72
commit dc7697a430
2 changed files with 27 additions and 13 deletions

View File

@@ -37,18 +37,19 @@
"react": "^0.11.1"
},
"devDependencies": {
"karma": "^0.12.16",
"karma-jasmine": "~0.2.0",
"karma-coverage": "^0.2.4",
"karma-failed-reporter": "0.0.2",
"karma-phantomjs-launcher": "~0.1.4",
"gulp": "^3.8.7",
"gulp-concat": "^2.2.0",
"gulp-jshint": "^1.5.1",
"gulp-karma": "0.0.4",
"gulp-uglify": "^0.2.1",
"gulp-jshint": "^1.5.1",
"gulp-concat": "^2.2.0",
"streamqueue": "^0.1.1",
"jshint-stylish": "^0.2.0"
"jshint-stylish": "^0.2.0",
"karma": "^0.12.16",
"karma-coverage": "^0.2.4",
"karma-failed-reporter": "0.0.2",
"karma-jasmine": "~0.2.0",
"karma-phantomjs-launcher": "~0.1.4",
"karma-spec-reporter": "0.0.13",
"streamqueue": "^0.1.1"
},
"scripts": {
"test": "gulp test",

View File

@@ -2,13 +2,26 @@
module.exports = function(config) {
config.set({
frameworks: ["jasmine"],
browsers: ["PhantomJS"],
autowatch: false,
singleRun: true,
preprocessors: {
"../src/*.js": "coverage"
},
reporters: ["dots", "failed", "coverage"],
reporters: ["spec", "failed", "coverage"],
coverageReporter: {
type: "html"
reporters: [
{
type: "lcovonly",
dir: "coverage",
subdir: "."
},
{
type: "text-summary"
}
]
},
browsers: ["PhantomJS"]
});
};
};