Skip to content

Commit 69c5e32

Browse files
tests: add coverage reporting with nyc and coveralls
1 parent e78410a commit 69c5e32

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ node_modules/
2020

2121
# Code coverage results
2222
/coverage
23+
.nyc_output
2324

2425
# Don't ignore .empty_directory files
2526
!.empty_directory

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ notifications:
1212
slack:
1313
secure: ezTt+YKE1kxJPRFthZ7UTZuCyBI2Jw1CmiTeUKaKD3mDSc2jhUh70hjrG0kxykYKuomkYlS/fPxWEHSK5X28XtA18tEZqjOnDG+YNCizFIat6Uq8dwUPhTJ/WAnq7CaSpH29uq90xNNWk3MAbqJMpHdYkWfFMHGkIuGDblcSjcI=
1414

15+
after_success:
16+
- './node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls'
17+
1518
cache:
1619
apt: true
1720
directories:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Streen [![Build Status](https://travis-ci.org/SupportClass/streen.svg?branch=master)](https://travis-ci.org/SupportClass/streen)
1+
#Streen [![Build Status](https://travis-ci.org/SupportClass/streen.svg?branch=master)](https://travis-ci.org/SupportClass/streen) [![Coverage Status](https://coveralls.io/repos/github/SupportClass/streen/badge.svg?branch=master)](https://coveralls.io/github/SupportClass/streen?branch=master)
22
Streen is a centralized interface for interacting with Twitch Chat. It is essentially a wrapper for
33
[twitch-irc](https://github.com/twitch-irc/twitch-irc), and it operates via IPC.
44

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@
3636
],
3737
"devDependencies": {
3838
"ava": "^0.17.0",
39+
"coveralls": "^2.11.15",
3940
"eslint": "^3.10.2",
4041
"eslint-config-xo": "^0.17.0",
4142
"eslint-plugin-ava": "^4.0.0",
4243
"mockery": "^2.0.0",
44+
"nyc": "^10.1.2",
4345
"socket.io-client": "^1.7.2"
4446
},
4547
"scripts": {
4648
"static": "eslint server.js lib/**/*.js",
47-
"test": "npm run static && ava --timeout=20s",
49+
"test": "npm run static && nyc ava --timeout=20s",
4850
"start": "node server.js"
4951
}
5052
}

0 commit comments

Comments
 (0)