Skip to content

Commit

Permalink
Merge pull request #23 from nsonanh/feature-coverage-setup
Browse files Browse the repository at this point in the history
Feature coverage setup
  • Loading branch information
nsonanh committed Jun 26, 2017
2 parents a893d62 + 5cbcdfd commit fd099e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: dHX3qoZwkO0qS1Z8TV9PxbuQcVVWdvbIx
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# danhngon-api
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![CircleCI](https://circleci.com/gh/nsonanh/danhngon-api/tree/master.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/nsonanh/danhngon-api/tree/master)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![CircleCI](https://circleci.com/gh/nsonanh/danhngon-api/tree/master.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/nsonanh/danhngon-api/tree/master) [![Coverage Status](https://coveralls.io/repos/github/nsonanh/danhngon-api/badge.svg)](https://coveralls.io/github/nsonanh/danhngon-api)

## API Documentation
### [danhngon-api documentation](https://nsonanh.github.io/danhngon-api/public/apidoc/index.html)
Expand Down Expand Up @@ -32,4 +32,4 @@
- Restify framework
- npm deployment
- Data contribution
- Avoid redundancy/duplication of quotes
- Avoid redundancy/duplication of quotes
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
"devDependencies": {
"chai": "^4.0.2",
"chai-http": "^3.0.0",
"mocha": "^3.4.2"
"coveralls": "^2.13.1",
"mocha": "^3.4.2",
"mocha-lcov-reporter": "^1.3.0"
},
"scripts": {
"start": "set NODE_ENV=dev && node server.js",
"test": "mocha ./app/test/test.js --reporter spec"
"test": "mocha ./test/test.js --reporter spec"
}
}
4 changes: 2 additions & 2 deletions app/test/test.js → test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
process.env.NODE_ENV = 'test';

let mongoose = require("mongoose");
let Danhngon = require('../models/danhngon');
let Danhngon = require('../app/models/danhngon');

//Require the dev-dependencies
let chai = require('chai');
let chaiHttp = require('chai-http');
let server = require('../../server');
let server = require('../server');
let should = chai.should();

chai.use(chaiHttp);
Expand Down

0 comments on commit fd099e8

Please sign in to comment.