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

Express api server tests #586

Merged
merged 6 commits into from
Sep 28, 2020

Conversation

nfreear
Copy link
Contributor

@nfreear nfreear commented Sep 13, 2020

Pull Request Template

PR Checklist

PR Description

Hi @jesus-seijas-sp,

As discussed in #580, I've:

  • Split the ExpressApiServer class in two;
  • Add the supertest dev dependency;
  • Added unit tests for the two classes;

I hope this helps.

Yours,

Nick

@coveralls
Copy link

coveralls commented Sep 26, 2020

Pull Request Test Coverage Report for Build 2051

  • 24 of 25 (96.0%) changed or added relevant lines in 3 files are covered.
  • 40 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.5%) to 74.428%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/express-api-server/src/express-api-server.js 4 5 80.0%
Files with Coverage Reduction New Missed Lines %
packages/express-api-server/src/express-api-server.js 2 82.93%
packages/nlg/src/nlg-manager.js 4 91.98%
packages/nlp/src/nlp.js 34 50.1%
Totals Coverage Status
Change from base Build 1244: 0.5%
Covered Lines: 6251
Relevant Lines: 8018

💛 - Coveralls

@nfreear
Copy link
Contributor Author

nfreear commented Sep 26, 2020

Hi @jesus-seijas-sp,

I'm happy to say, this is now ready to merge.

Note, the supertest is a dev-dependency in two places:

  1. ./package.json -- For the jest unit tests (preferred location);
  2. ./packages/api-express-server/package.json -- To pass eslint test;

(Is there a way we can remove the second inclusion?)

Ta,

Nick

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 5 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

@jesus-seijas-sp jesus-seijas-sp merged commit 2e46585 into axa-group:master Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants