Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #2

Merged
merged 4 commits into from
Jul 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ jobs:
- store_test_results:
path: reports

- run:
name: Compress Artifacts
command: tar -cvf ./reports.tar ./reports

- store_artifacts:
path: ./reports.tar

- store_artifacts:
path: ./reports/junit-custom.xml

Expand Down
4 changes: 2 additions & 2 deletions .mocha/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"reporterEnabled": "spec, mochawesome, mocha-junit-reporter",
"mochawesomeReporterOptions": {
"reportDir": "report"
"reportDir": "reports/mocha"
},
"mochaJunitReporterReporterOptions": {
"mochaFile": "results/junit-custom.xml"
"mochaFile": "reports/junit-custom.xml"
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

This is a framework for building a microservice with express JS

[![CircleCI](https://circleci.com/gh/lukebellamy053/node-express-microservice/tree/master.svg?style=svg)](https://circleci.com/gh/lukebellamy053/node-express-microservice/tree/master)
[![Maintainability](https://api.codeclimate.com/v1/badges/8f19766e87bd425fb5b6/maintainability)](https://codeclimate.com/github/lukebellamy053/node-express-microservice/maintainability)
<a href="https://codeclimate.com/github/lukebellamy053/node-express-microservice/test_coverage"><img src="https://api.codeclimate.com/v1/badges/8f19766e87bd425fb5b6/test_coverage" /></a>

## Installation
Newer versions of NPM save the package to your package.json by default
```sh
Expand Down
16 changes: 7 additions & 9 deletions test/Utils/PathHandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ describe('PathHandler', function() {
describe('RegisterProxy', function() {
let serverObject: CustomServer;

before(done => {
let isDone = false;
chai.use(chaiHttp);
serverObject = new CustomServer({ PORT: 8081, APP_BUILD: 1, APP_VERSION: '1', SERVICE_NAME: 'Test' });
ExpressServer.events.on(ServerEvents.SERVER_READY, () => {
if (!isDone) {
done();
isDone = true;
}
before(() => {
return new Promise(resolve => {
chai.use(chaiHttp);
serverObject = new CustomServer({ PORT: 8081, APP_BUILD: 1, APP_VERSION: '1', SERVICE_NAME: 'Test' });
ExpressServer.events.on(ServerEvents.SERVER_READY, () => {
resolve();
});
});
});

Expand Down