question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngclient Updater: write tests to handling coverage report

See original GitHub issue

Description of issue or feature request: This is the minimal amount of testing we should have to enable coverage for the ngclient updater and the first step of resolving #1462 for the Updater. When resolving the missing lines reported by coverage we will decide if we want to handle all of them or there is a sense of leaving some of them.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jkucommented, Aug 5, 2021

also

  • we’re probably not testing cycle prevention in _preorder_depth_first_walk(): this is the if (role_name, parent_role) in visited_role_names branch
  • test that terminating actually prevents backtracking to other roles (but does not prevent e.g. finding an earlier sibling role)
0reactions
sechkovacommented, Sep 1, 2021

Up to now the coverage has been/will be improved by:

I am assigning this to myself to finish the work and include ngclient to the coverage report.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngclient TrustedMetadataSet: write tests to handling coverage report ...
Description of issue or feature request: This is the minimal amount of testing we should have and the first step of resolving #1462...
Read more >
Find out how much code you're testing - Angular
The CLI can run unit tests and create code coverage reports. Code coverage reports show you any parts of your code base that...
Read more >
Angular 11 Unit Test Code Coverage is Now Breaking
The trick for me was to remove 'coverage' from the reporters. It should just be: reporters: ['progress', 'kjhtml'],. The coverage report is ...
Read more >
Use code coverage for unit testing - .NET | Microsoft Learn
This article discusses the usage of code coverage for unit testing with Coverlet and report generation using ReportGenerator.
Read more >
Measuring code coverage - Testing Angular
How to measure test coverage of Angular applications. ... The coverage report is a valuable tool you should use while writing tests.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found