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: versionInfo #1407

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcobiedermann
Copy link
Contributor

Add full test coverage resolving the versionInfo

--------------|---------|----------|---------|---------|---------------------------------------
File          | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------|---------|----------|---------|---------|---------------------------------------
 version.ts   |     100 |      100 |     100 |     100 |
--------------|---------|----------|---------|---------|---------------------------------------

Add full test coverage resolving the `versionInfo`
.intercept({
path: `/${platform}/${version}`,
})
.reply(404, 'MESSAGE');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any arbitrary message would work as the service returns XML, which can not be parsed by the .json() method

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.90%. Comparing base (dad251d) to head (58d2d62).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1407      +/-   ##
==========================================
- Coverage   93.28%   91.90%   -1.39%     
==========================================
  Files           4        5       +1     
  Lines         298      321      +23     
  Branches       81       84       +3     
==========================================
+ Hits          278      295      +17     
- Misses         18       24       +6     
  Partials        2        2              
Flag Coverage Δ
demo ?
macos-latest ?
macos-latest-xlarge 91.90% <ø> (-1.39%) ⬇️
script 91.90% <ø> (-1.39%) ⬇️
ubuntu-latest ?
version ?
windows-latest ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcobiedermann
Copy link
Contributor Author

Some workflows are failing as they were not up to date on main for quite some time, as mentioned in #1396 (comment).
I suggest disabling them as a required check and open up a follow-up ticket to fix them first, before applying those rules to all branches

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

2 participants