Skip to content

Commit dc7697a

Browse files
author
jacobawenger
committed
Updated karma test reporters
1 parent e675e05 commit dc7697a

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@
3737
"react": "^0.11.1"
3838
},
3939
"devDependencies": {
40+
"gulp": "^3.8.7",
41+
"gulp-concat": "^2.2.0",
42+
"gulp-jshint": "^1.5.1",
43+
"gulp-karma": "0.0.4",
44+
"gulp-uglify": "^0.2.1",
45+
"jshint-stylish": "^0.2.0",
4046
"karma": "^0.12.16",
41-
"karma-jasmine": "~0.2.0",
4247
"karma-coverage": "^0.2.4",
4348
"karma-failed-reporter": "0.0.2",
49+
"karma-jasmine": "~0.2.0",
4450
"karma-phantomjs-launcher": "~0.1.4",
45-
"gulp": "^3.8.7",
46-
"gulp-karma": "0.0.4",
47-
"gulp-uglify": "^0.2.1",
48-
"gulp-jshint": "^1.5.1",
49-
"gulp-concat": "^2.2.0",
50-
"streamqueue": "^0.1.1",
51-
"jshint-stylish": "^0.2.0"
51+
"karma-spec-reporter": "0.0.13",
52+
"streamqueue": "^0.1.1"
5253
},
5354
"scripts": {
5455
"test": "gulp test",

tests/karma.conf.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@
22
module.exports = function(config) {
33
config.set({
44
frameworks: ["jasmine"],
5+
browsers: ["PhantomJS"],
6+
autowatch: false,
7+
singleRun: true,
8+
59
preprocessors: {
610
"../src/*.js": "coverage"
711
},
8-
reporters: ["dots", "failed", "coverage"],
12+
13+
reporters: ["spec", "failed", "coverage"],
914
coverageReporter: {
10-
type: "html"
15+
reporters: [
16+
{
17+
type: "lcovonly",
18+
dir: "coverage",
19+
subdir: "."
20+
},
21+
{
22+
type: "text-summary"
23+
}
24+
]
1125
},
12-
browsers: ["PhantomJS"]
1326
});
14-
};
27+
};

0 commit comments

Comments
 (0)