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

test(core-api): increate test coverage to 100% #4061

Merged
merged 11 commits into from
Sep 29, 2020

Conversation

sebastijankuzner
Copy link
Contributor

@sebastijankuzner sebastijankuzner commented Sep 28, 2020

Summary

Solves #4050

Increase core-api coverage to 100 %.

Checklist

  • Tests (if necessary)
  • Ready to be merged

@codecov
Copy link

codecov bot commented Sep 28, 2020

Codecov Report

Merging #4061 into develop will increase coverage by 83.38%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop    #4061       +/-   ##
============================================
+ Coverage    13.35%   96.74%   +83.38%     
============================================
  Files          715      715               
  Lines        17188    17190        +2     
  Branches      2087     2088        +1     
============================================
+ Hits          2296    16630    +14334     
+ Misses       14786      401    -14385     
- Partials       106      159       +53     
Flag Coverage Δ
#functional 5.99% <ø> (-0.01%) ⬇️
#integration 10.02% <ø> (+<0.01%) ⬆️
#unit 95.38% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/core-api/src/controllers/controller.ts 100.00% <ø> (+14.28%) ⬆️
packages/core-api/src/routes/wallets.ts 100.00% <ø> (+13.04%) ⬆️
packages/core-api/src/schemas.ts 90.32% <0.00%> (+3.22%) ⬆️
...core-test-framework/src/utils/api-inject-client.ts 100.00% <0.00%> (+3.84%) ⬆️
packages/core-api/src/routes/transactions.ts 100.00% <0.00%> (+4.34%) ⬆️
...ore-test-framework/src/app/generators/generator.ts 100.00% <0.00%> (+5.88%) ⬆️
...e-test-framework/src/matchers/functional/entity.ts 100.00% <0.00%> (+6.45%) ⬆️
packages/core-api/src/routes/delegates.ts 100.00% <0.00%> (+6.66%) ⬆️
packages/core-api/src/routes/locks.ts 100.00% <0.00%> (+7.69%) ⬆️
...sactions/src/handlers/entity-subhandlers/resign.ts 7.89% <0.00%> (+7.89%) ⬆️
... and 638 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update deb2cd7...e4d7a7f. Read the comment docs.

@faustbrian
Copy link
Contributor

@sebastijankuzner conflicts and failing p2p test due to type issues

# Conflicts:
#	__tests__/unit/core-api/controllers/locks.test.ts
#	__tests__/unit/core-api/controllers/wallets.test.ts
@air1one air1one merged commit 448b941 into develop Sep 29, 2020
@ghost ghost deleted the test/core-api/increase-coverage branch September 29, 2020 09:35
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.

None yet

3 participants