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.

[FEATURE] Coverage test command

See original GitHub issue
Overview of the issue

It would be great if I could call compodoc to test for documentation coverage with a certain threshold, e. g. calling compodoc --coverage-test 90 should return truthy if the project has least 90% documentation coverage and throw an error otherwise.

Motivation for or Use Case

This would allow to use compodoc for checking documentation coverage on a CI server.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vogloblinskycommented, Apr 26, 2017

Yes, it is the expected behavior. Just parse the file, compute coverage, and stop with exit code 0 or 1.

1reaction
dbartholomaecommented, Apr 24, 2017

Basiscally: 0 if coverage is above threshold and 1 if it isn’t. The command should fail if the coverage test doesn’t succeed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring code coverage in Jest, the right way
In this brief tutorial we see how to configure code coverage for Jest, the right way.
Read more >
Improve Code Quality Using Test Coverage - CODE Magazine
In this article, I'll introduce the concept of code coverage by exploring the value of measurements such as statement coverage, function ...
Read more >
Test Coverage Techniques: The Top Ones You Need - Testim.io
Test coverage is the process you use to determine whether you're testing everything you're supposed to test. It allows you to check the...
Read more >
Code Coverage vs Test Coverage: A Detailed Guide
Branch Coverage : This is used to ensure that every branch in a decision-making process is executed. · Function Coverage: This ensures that...
Read more >
Code coverage testing - Visual Studio (Windows)
To determine what proportion of your project's code is being tested by coded tests such as unit tests, you can use the code...
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