Skip to content

Commit

Permalink
Merge pull request #107 from noflo/coverage
Browse files Browse the repository at this point in the history
Test coverage
  • Loading branch information
bergie committed Nov 9, 2017
2 parents 5ef9170 + 7ddc522 commit c60f632
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/node_modules
/browser
/npm-debug.log
/.nyc_output
Base.js
direct.js
protocol/*.js
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: node_js
node_js:
- '6'
before_script:
- npm install -g grunt-cli
sudo: false
after_success:
- ./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls
deploy:
provider: npm
email: henri.bergius@iki.fi
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NoFlo Base Runtime [![Build Status](https://travis-ci.org/noflo/noflo-runtime-base.svg?branch=master)](https://travis-ci.org/noflo/noflo-runtime-base)
NoFlo Base Runtime [![Build Status](https://travis-ci.org/noflo/noflo-runtime-base.svg?branch=master)](https://travis-ci.org/noflo/noflo-runtime-base) [![Coverage Status](https://coveralls.io/repos/github/noflo/noflo-runtime-base/badge.svg?branch=master)](https://coveralls.io/github/noflo/noflo-runtime-base?branch=master)
====

Base implementation of [FBP protocol](http://noflojs.org/documentation/protocol) for NoFlo.
Base implementation of [FBP protocol](http://noflojs.org/documentation/protocol) for NoFlo. Used by libraries implementing different transports, like [noflo-runtime-websocket](https://github.com/noflo/noflo-runtime-websocket) and [noflo-runtime-postmessage](https://github.com/noflo/noflo-runtime-postmessage).
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"license": "MIT",
"devDependencies": {
"chai": "^4.0.0",
"coveralls": "^3.0.0",
"grunt": "^1.0.1",
"grunt-coffeelint": "^0.0.16",
"grunt-contrib-coffee": "^2.0.0",
Expand All @@ -21,13 +22,14 @@
"grunt-mocha-test": "^0.13.2",
"grunt-noflo-browser": "^1.5.1",
"mocha": "^4.0.0",
"noflo-core": ">= 0.4.0"
"noflo-core": ">= 0.4.0",
"nyc": "^11.3.0"
},
"keywords": [
"noflo"
],
"scripts": {
"test": "grunt test"
"test": "nyc grunt test"
},
"main": "./Base.js",
"dependencies": {
Expand All @@ -36,5 +38,11 @@
"json-stringify-safe": "^5.0.1",
"noflo": "^1.0.0",
"temp": "^0.8.3"
},
"nyc": {
"include": [
"*.js",
"protocol/*.js"
]
}
}
2 changes: 1 addition & 1 deletion spec/Graph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if noflo.isBrowser()
direct = require('noflo-runtime-base').direct
else
chai = require 'chai' unless chai
direct = require '../src/direct'
direct = require '../direct'

describe 'Graph protocol', ->
runtime = null
Expand Down
2 changes: 1 addition & 1 deletion spec/Network.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if noflo.isBrowser()
baseDir = 'noflo-runtime-base'
else
chai = require 'chai' unless chai
direct = require '../src/direct'
direct = require '../direct'
path = require 'path'
baseDir = path.resolve __dirname, '../'

Expand Down
2 changes: 1 addition & 1 deletion spec/Runtime.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if noflo.isBrowser()
baseDir = 'noflo-runtime-base'
else
chai = require 'chai' unless chai
direct = require '../src/direct'
direct = require '../direct'
path = require 'path'
baseDir = path.resolve __dirname, '../'

Expand Down
4 changes: 2 additions & 2 deletions spec/trace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if noflo.isBrowser()
baseDir = '/noflo-runtime-base'
else
chai = require 'chai' unless chai
direct = require '../src/direct'
{ Tracer } = require '../src/trace'
direct = require '../direct'
{ Tracer } = require '../trace'
path = require 'path'
baseDir = path.resolve __dirname, '../'

Expand Down

0 comments on commit c60f632

Please sign in to comment.