Skip to content

Commit c4adb96

Browse files
committedApr 18, 2017
Adds nyc + coveralls
Signed-off-by: Rick Waldron <[email protected]>
1 parent d77e9b0 commit c4adb96

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ target
33
node_modules
44
spid
55
usbexecd
6+
.nyc*
7+
coverage

‎.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ before_install:
88
- npm install -g grunt-cli
99
install: npm install
1010
script: grunt
11+
12+
after_success:
13+
- npm run coveralls

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Tessel 2 Firmware
22

33
[![Code of Conduct](https://img.shields.io/badge/%E2%9D%A4-code%20of%20conduct-blue.svg?style=flat)](https://github.com/tessel/project/blob/master/CONDUCT.md) [![Build Status](https://travis-ci.org/tessel/t2-firmware.svg?branch=master)](https://travis-ci.org/tessel/t2-firmware)
4+
[![Coverage Status](https://coveralls.io/repos/github/tessel/t2-firmware/badge.svg?branch=master)](https://coveralls.io/github/tessel/t2-firmware?branch=master)
45

56
* [About the T2 Firmware](#about-the-t2-firmware)
67
* [SAM D21 Overview](#sam-d21-overview)

‎node/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "tessel.js",
66
"dependencies": {},
77
"devDependencies": {
8+
"coveralls": "^2.13.0",
89
"grunt": "^0.4.5",
910
"grunt-cli": "^0.1.13",
1011
"grunt-contrib-jshint": "^0.11.2",
@@ -13,10 +14,13 @@
1314
"grunt-jsbeautifier": "^0.2.10",
1415
"grunt-jscs": "^2.6.0",
1516
"npm": "^3.10.5",
17+
"nyc": "^10.2.0",
1618
"sinon": "^1.14.1"
1719
},
1820
"scripts": {
19-
"test": "grunt"
21+
"test": "grunt",
22+
"test-cover": "nyc grunt nodeunit",
23+
"coveralls": "nyc --reporter=lcov grunt nodeunit && cat ./coverage/lcov.info | coveralls"
2024
},
2125
"author": "Technical Machine <team@technical.io>",
2226
"license": "MIT"

0 commit comments

Comments
 (0)