Skip to content

Commit

Permalink
Add coveralls.io coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
glenjamin committed May 28, 2015
1 parent 9600670 commit 6b4c265
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
- 0.10
- 0.12
- "iojs"
script: "npm run travis"
after_script: "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Yet another flux implementation",
"main": "flux-redux.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"travis": "istanbul cover _mocha --"
},
"repository": {
"type": "git",
Expand All @@ -21,6 +22,8 @@
},
"devDependencies": {
"chai": "^2.3.0",
"coveralls": "^2.11.2",
"istanbul": "^0.3.14",
"mocha": "^2.2.5",
"sinon": "^1.14.1",
"sinon-chai": "^2.7.0"
Expand Down
6 changes: 4 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ describe("flux-redux", function() {
flux.dispatch("NOTHING");
expect(listener).to.have.callCount(0);
});

it("should retain state when added again");
it("should use optional merge strategy on state when added again");
});

describe("multiple overlapping stores", function() {
Expand Down Expand Up @@ -233,7 +236,6 @@ describe("flux-redux", function() {
});

describe("state replacement", function() {
it("should replace all stores' state");
it("should allow custom merge strategy");
it("should be removed");
});
});

0 comments on commit 6b4c265

Please sign in to comment.