Skip to content

Commit

Permalink
FABN-856 submitTxn API test and gitignore update
Browse files Browse the repository at this point in the history
- npm test within network package to drive local mocha tests
- Extend gitignore file

Change-Id: Ibc72b3a9bdf6b658c3b86548c903d15939aa53d5
Signed-off-by: nkl199@yahoo.co.uk <nkl199@yahoo.co.uk>
  • Loading branch information
nklincoln committed Aug 20, 2018
1 parent 781ef3f commit 196c9e4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ fabric-ca-client/lib/hash.js
fabric-ca-client/lib/impl/*
fabric-ca-client/types/base.d.ts
fabric-ca-client/types/tsconfig.json
fabric-network/node_modules/*
fabric-network/.nyc_output
npm-shrinkwrap.json
npm-debug.log
tmp
.project
.DS_Store
fabric-client/.DS_Store
fabric-ca-client/.DS_Store
fabric-network/.DS_Store
test/fixtures/src/github.com/example_cc/junk.go
*.csv
*.heapsnapshot
Expand Down
3 changes: 2 additions & 1 deletion build/tasks/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ gulp.task('lint', () => {
'fabric-network/**/*.js',
'fabric-client/**/*.js',
'fabric-ca-client/lib/*.js',
'!fabric-network/coverage/**',
'!fabric-client/coverage/**',
'!fabric-ca-client/coverage/**',
'!fabric-network/coverage/**',
'!test/typescript/*.js',
'!node_modules/**',
'!fabric-network/node_modules/**',
Expand Down
24 changes: 16 additions & 8 deletions fabric-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"email": "fabric@lists.hyperledger.org"
},
"scripts": {
"test": "gulp test-headless"
"test": "nyc mocha --recursive -t 10000"
},
"dependencies": {
"fabric-ca-client": "file:../fabric-ca-client",
Expand All @@ -22,20 +22,28 @@
"uuid": "^3.2.1"
},
"devDependencies": {
"nyc": "^11.8.0",
"mocha": "^5.2.0",
"nyc": "^12.0.2",
"rewire": "^4.0.1",
"sinon": "^5.0.7"
},
"nyc": {
"include": [],
"exclude": [
"index.js",
"coverage/**",
"test/**"
],
"reporter": [
"lcov",
"json",
"text",
"text-summary",
"cobertura"
"html"
],
"cache": true
"cache": true,
"all": true,
"check-coverage": true,
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100
},
"license": "Apache-2.0",
"licenses": [
Expand Down

0 comments on commit 196c9e4

Please sign in to comment.