#Codecoverage

Clare Sudberyclaresudbery
2025-06-13

How can you use code coverage and mutation testing to add tests to legacy code? At @mendercon last year, I demonstrated this powerful technique step by step on the Gilded Rose kata, which is hosted by @emilybache on her GitHub account: github.com/emilybache/GildedRo

You can watch the talk here: youtube.com/watch?v=0qna5cuzDI0

2025-05-29

After starting and stopping a half-dozen times over the last few months, I finally sat down last night and spent ~3hr writing my thoughts on #CodeCoverage.

TL;DR: It's not without merit, but it is not the metric that many people make it out to be.

stevegrunwell.com/blog/code-co

Adam H. Sparks :rstats:adamhsparks@rstats.me
2025-05-12

Any @Codeberg users set up code coverage that can point me to a system that works with #RStats? Usually I just use codecov.io's linkage with GitHub for my packages that are hosted there, so I'm unsure how/where to set this up for #Codeberg. I'm able to check locally, but would like at the least to have the badge on the README, CI can come later but would be nice as well. #CodeCoverage

2025-04-08

- "My library has 100% code coverage!"
- "How so?"
- "Because I test thoroughly"

* opens editor *

* CTRL+F *

* @phpstan-ignore-line *

* Found 587 occurrences *

2025-03-22

Had absolutely no idea there were bash-compatible coverage tools available...that's close to a game-changer. Just tried `kcov` and very happy to see my code highlighted with red and green lines to show what was run and what was not. Sometimes I have trouble with writing post-hoc tests, and this provides focus.

Did not try `bashcov` since I didn't care to bring in all of ruby for one tool.

github.com/SimonKagstrom/kcov

#Bash #Shell #CodeCoverage #ShellProgramming

Sanyam Khuranacuriouslearner
2025-02-28

🔥 New TIL: Fixing Coverage for Django’s manage.py test --parallel

Running Django tests in parallel but coverage reports are inaccurate? Parallel test execution can mess up coverage data, but here’s how to fix it properly!

Read more 👉 til.sanyamkhurana.com/#/topics

Emanuele Panzthepanz@phpc.social
2025-01-31

Looking for #phpunit code coverage dark-themes, are you using it?

Did not find any native support from PHPunit's tools, just some drop-in custom.css files.

Found so far just 2 of them:
1. github.com/chriswpage/phpunit- (updated 2024)

2. github.com/Porthorian/phpunit- (updated 2022)

From my preliminary research: the coverage tool is using bootstrap v4, while a dark-mode was only introduced in v5.3.

I should not dig into that migration path, or should I? 😅

#php #darkmode #phpunit #codecoverage

"Will you write component tests with me?" 💍
Forget "Will you marry me?" as this is the real question of commitment. A perfect mix of unit and E2E tests, proving microservices true behaviour. Because nothing says "forever" like solid test coverage. 🛠️❤️

martinfowler.com/articles/micr
#CodingLove #TestingIsCaring #Microservices #ComponentTesting #UnitTests #E2ETests #DevHumor #TechRomance #CodeCoverage #QA #DevLife #coding #developer

A couple which sits together writing tests
BaselOneBaselOne
2025-01-09

🎥 Das dritte Video der BaselOne 2024-Serie ist online! 🎉

Wir wünschen euch allen ein gutes 2025 und hoffen, ihr seid gut gestartet! 🌟

In „Code Coverage Myth Busters“ zeigen Marharyta & Evgeny (Sonar), wie Code Coverage Qualität & Produktivität steigern kann – wenn es richtig eingesetzt wird.

🚀 Ein Muss für Java-Entwickler!

📺 Jetzt reinschauen: youtu.be/e7xWqkhLH8s

📅 Save the Date: BaselOne 2025 – 15. & 16. Oktober in der Markthalle Basel!

2025-01-03

Ok so, I'd like to get one of those "coverage %" shield badges in some git projects of mine. Unfortunately, they're hosted on my own forge at git.avg.name, and most everywhere I looked (github.com/inttter/md-badges?t for starters) are all very GitHub-only, some GitLab, no Forgejo/Gitea 😞 or are like Schedule A 🕴️ Demo™

#CodeCoverage #Forgejo #Gitea #GitHub

2024-12-18

Blogged: .NET Code Coverage in Azure DevOps and SonarCloud

How to generate code coverage data that gets displayed in Azure Pipelines and SonarQube

david.gardiner.net.au/2024/12/

#AzureDevOps #AzurePipelines #SonarQube #CodeCoverage #dotnet

Screenshow of code coverage UI in Azure Pipelines
2024-12-13

Since the existing plugins came with too many dependencies for my taste, or specialized on some aspect that didn't cover what I need, I'm working on a #Vim plugin to display code coverage in the sign column.

It's reading lcov-formatted files (which is why I don't have any dependencies) and displays for each line whether it's covered or not.

Still needs a bit of work to be convenient, but I like the result already.

#programming #testing #CodeCoverage

Some Python code in Vim. In the sign column on the left edge of the screen, some lines have a strip of 75 % transparent green next to their line number. One line has a block of 25 % transparent red next to it. These colored markers are rendered as Unicode "block elements" shaded cells.
2024-11-21

Question for anyone who tests a Rails app using Cypress or Playwright: how do you collect and collate code coverage? What does that setup look like?

#ruby #rails #codecoverage #integrationtesting

2024-11-13

C++ code coverage reports often omit function templates that are not instantiated, which can give a misleading picture of coverage. I've been trying to improve my tooling in this regard, and so added a feature to Doxide to export line data directly from source code that can be mixed in with gcov coverage data. Here's the story so far.

indii.org/blog/cplusplus-code-

#softwaretesting #testcoverage #codecoverage #cplusplus #cpp

BaselOneBaselOne
2024-09-18

🚀 Effizienz-Booster oder Produktivitätsfalle? Die Wahrheit über Code Coverage 🔍

📢 Freut Euch auf diesen spannenden Vortrag "Code Coverage MythBusters" am 17. Oktober 2024! In diesem räumen Marharyta Nedzelska und Evgeny Mandrikov mit den grössten Mythen rund um auf und zeigen dir, wie du dieses Tool richtig einsetzt, um die Produktivität deines Teams zu steigern!

🚨 Tickets 🐸 unter lnkd.in/ggjmzerN.

Dyalogdyalog
2024-09-18

At , Aarush Bhat is introducing ullu, a new test framework designed to rigorously test Dyalog APL’s primitives. Achieving nearly 100% source code coverage, ullu ensures reliability and accuracy. 🧑‍💻🧪

Aarush Bhat presenting at Dyalog '24Aarush Bhat presenting at Dyalog '24Aarush Bhat presenting at Dyalog '24
Barry Stahl-AZGiveCamp FounderBsstahl@fosstodon.org
2024-09-13

Code coverage metrics HURT application quality, especially when gating deployments, because they are a misleading target, prioritizing superficial goals over meaningful use-case validation. A focus on achieving coverage percentages detracts from real quality assurance, as developers write tests that do what the targets insist that they do, satisfy coverage metrics rather than ensuring comprehensive use-case functionality.

#UnitTesting #TDD #CodeCoverage #BDD #Cucumber #SpecFlow

I think that the green bars of #CodeCoverage that go up are in a way a #gamification system: it provides with a very simple game (which is, well, get to 100%) and just as every gamification system, it fails (the programmer soon starts to only look at code coverage, without considering if the tests they're writing are actually useful or good).

On the other hand, having all of this in mind, I admit that I find it a good incentive to test, so... can cognizant gamification be good?

A long list of unit tests with varying level of code coverage, displayed most prominently as a bar covered in green, representing the level of coverage.
danzindanzin
2024-06-25

Anyone looking for a 🐍 project to contribute to?

We have a nice issue in @coveragepy (a great tool for measuring Python code coverage): github.com/nedbat/coveragepy/i

If you'd like to help, I can assist you setting things up, understanding the code and the issue.

Even if you don't think you can help, I can guide you and explain whatever you want to understand about the code/issue, no strings attached.

Boosting for visibility also helps!

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst