pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

Improved metrics: Measure and report test coverage

Open dnfield opened this issue 6 years ago • 3 comments

It would be great if pub encouraged package authors to write tests for their code. If a repository has a lcov file, or perhaps a link to coveralls or some similar service, pub could calculate test coverage into the score for the package.

dnfield avatar Feb 27 '19 22:02 dnfield

If we ran tests I think this would make sense, but without running tests it's just a vanity thing (as we can't tell how fresh the results are).

Don't get me wrong, running tests and publishing test coverage metrics would be awesome.

jonasfj avatar Mar 04 '19 10:03 jonasfj

Still valid

sigurdm avatar Sep 26 '24 08:09 sigurdm

Instead of running tests, a first step could be to just display how many test cases there are or how many LOCs the test/ folder has

benthillerkus avatar Feb 21 '25 20:02 benthillerkus