home.social

#codecoverage — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #codecoverage, aggregated by home.social.

fetched live
  1. An open source project just fixed a bug that I reported 14 years ago. Surprisingly for such an old bug, the bug fix is still useful to me!

    github.com/pjcj/Devel--Cover/p

    Thanks @pjcj!

  2. An open source project just fixed a bug that I reported 14 years ago. Surprisingly for such an old bug, the bug fix is still useful to me!

    github.com/pjcj/Devel--Cover/p

    Thanks @pjcj!

    #perl #CodeCoverage

  3. An open source project just fixed a bug that I reported 14 years ago. Surprisingly for such an old bug, the bug fix is still useful to me!

    github.com/pjcj/Devel--Cover/p

    Thanks @pjcj!

    #perl #CodeCoverage

  4. An open source project just fixed a bug that I reported 14 years ago. Surprisingly for such an old bug, the bug fix is still useful to me!

    github.com/pjcj/Devel--Cover/p

    Thanks @pjcj!

    #perl #CodeCoverage

  5. Meet Covpeek - a fast, language-agnostic coverage parser that extracts coverage data across projects. No more juggling formats - unify reports and focus on quality.

    Try it today: github.com/Chapati-Systems/cov

    #covpeek #codecoverage #devops #coverage #testing #ci #rust #golang

  6. Meet Covpeek - a fast, language-agnostic coverage parser that extracts coverage data across projects. No more juggling formats - unify reports and focus on quality.

    Try it today: github.com/Chapati-Systems/cov

    #covpeek #codecoverage #devops #coverage #testing #ci #rust #golang

  7. Meet Covpeek - a fast, language-agnostic coverage parser that extracts coverage data across projects. No more juggling formats - unify reports and focus on quality.

    Try it today: github.com/Chapati-Systems/cov

    #covpeek #codecoverage #devops #coverage #testing #ci #rust #golang

  8. When writing tests, i do not optimize for code coverage

    I have now been on both sides of the code coverage debate. I have advocated that test suites should achieve higher code coverage. I have also advocated against using code coverage for blocking PR merges.
    And fair warning: what i say next is based on my lived experience as a developer, and may not apply to all software engineering contexts.

    Some things i have learned to be true, over my time researching and practicing software engineering:

    • You can execute the same line of code a million time without ever catching a bug in that line.
    • Higher code coverage does not mean better tests.
    • Code coverage can be gamed.
    • Some code cannot be executed naturally in a test environment. A lot of UI and configuration code falls neatly in this category.

    Given that, I have landed on a very basic philosophy around writing tests, and how code coverage factors in:

    I do not optimize my test code for higher code coverage. And instead use coverage data to prioritize what i need to test and leave untested.

    The coverage metric itself is not meaningful to me. I rather have only 30% code coverage if i am testing the most critical sections of the codebase. I prefer that over covering 70% of the codebase which may be peripheral to the program’s implementation.

    Beyond the coverage metric itself, i am more interested in the set of lines got executed by the test. And i like to examine this data by each method or function. That tells me if the lines that I think should get executed are actually getting executed. I also use such insight to think about the program inputs i need to conjure to exercise the lines of code that are getting skipped from execution.

    Indeed, that sort of analysis can be time consuming. But to me it is no different than the time I spend in investigate bugs in production code with breakpoints and step-through debuggers. I use the full set of covered (and uncovered) lines as data in gaining a deeper understanding of how my test code is working.

    Personal take: Code coverage is not something that should be optimized for. It should be treated as an honest reflection of what got executed by the test(s), and what did not. That gives real insight into the inner mechanics of the test code.

    #codeCoverage #programming #softwareMetrics #softwareEngineering #testing

  9. When writing tests, i do not optimize for code coverage

    I have now been on both sides of the code coverage debate. I have advocated that test suites should achieve higher code coverage. I have also advocated against using code coverage for blocking PR merges.
    And fair warning: what i say next is based on my lived experience as a developer, and may not apply to all software engineering contexts.

    Some things i have learned to be true, over my time researching and practicing software engineering:

    • You can execute the same line of code a million time without ever catching a bug in that line.
    • Higher code coverage does not mean better tests.
    • Code coverage can be gamed.
    • Some code cannot be executed naturally in a test environment. A lot of UI and configuration code falls neatly in this category.

    Given that, I have landed on a very basic philosophy around writing tests, and how code coverage factors in:

    I do not optimize my test code for higher code coverage. And instead use coverage data to prioritize what i need to test and leave untested.

    The coverage metric itself is not meaningful to me. I rather have only 30% code coverage if i am testing the most critical sections of the codebase. I prefer that over covering 70% of the codebase which may be peripheral to the program’s implementation.

    Beyond the coverage metric itself, i am more interested in the set of lines got executed by the test. And i like to examine this data by each method or function. That tells me if the lines that I think should get executed are actually getting executed. I also use such insight to think about the program inputs i need to conjure to exercise the lines of code that are getting skipped from execution.

    Indeed, that sort of analysis can be time consuming. But to me it is no different than the time I spend in investigate bugs in production code with breakpoints and step-through debuggers. I use the full set of covered (and uncovered) lines as data in gaining a deeper understanding of how my test code is working.

    Personal take: Code coverage is not something that should be optimized for. It should be treated as an honest reflection of what got executed by the test(s), and what did not. That gives real insight into the inner mechanics of the test code.

    #codeCoverage #programming #softwareMetrics #softwareEngineering #testing

  10. When writing tests, i do not optimize for code coverage

    I have now been on both sides of the code coverage debate. I have advocated that test suites should achieve higher code coverage. I have also advocated against using code coverage for blocking PR merges.
    And fair warning: what i say next is based on my lived experience as a developer, and may not apply to all software engineering contexts.

    Some things i have learned to be true, over my time researching and practicing software engineering:

    • You can execute the same line of code a million time without ever catching a bug in that line.
    • Higher code coverage does not mean better tests.
    • Code coverage can be gamed.
    • Some code cannot be executed naturally in a test environment. A lot of UI and configuration code falls neatly in this category.

    Given that, I have landed on a very basic philosophy around writing tests, and how code coverage factors in:

    I do not optimize my test code for higher code coverage. And instead use coverage data to prioritize what i need to test and leave untested.

    The coverage metric itself is not meaningful to me. I rather have only 30% code coverage if i am testing the most critical sections of the codebase. I prefer that over covering 70% of the codebase which may be peripheral to the program’s implementation.

    Beyond the coverage metric itself, i am more interested in the set of lines got executed by the test. And i like to examine this data by each method or function. That tells me if the lines that I think should get executed are actually getting executed. I also use such insight to think about the program inputs i need to conjure to exercise the lines of code that are getting skipped from execution.

    Indeed, that sort of analysis can be time consuming. But to me it is no different than the time I spend in investigate bugs in production code with breakpoints and step-through debuggers. I use the full set of covered (and uncovered) lines as data in gaining a deeper understanding of how my test code is working.

    Personal take: Code coverage is not something that should be optimized for. It should be treated as an honest reflection of what got executed by the test(s), and what did not. That gives real insight into the inner mechanics of the test code.

    #codeCoverage #programming #softwareMetrics #softwareEngineering #testing

  11. What is the name of the metric for when you got 100% code coverage, but you got 2, 4, 10 tests covering each line of code. Coverage depth? It would be a nice statistic to have #codecoverage

  12. What is the name of the metric for when you got 100% code coverage, but you got 2, 4, 10 tests covering each line of code. Coverage depth? It would be a nice statistic to have #codecoverage

  13. What is the name of the metric for when you got 100% code coverage, but you got 2, 4, 10 tests covering each line of code. Coverage depth? It would be a nice statistic to have #codecoverage

  14. What is the name of the metric for when you got 100% code coverage, but you got 2, 4, 10 tests covering each line of code. Coverage depth? It would be a nice statistic to have #codecoverage

  15. #PostgreSQL Differential Code Coverage—Now Automated Daily!

    Just came across a fantastic initiative by [@nbyavuz](github.com/nbyavuz) that I think the Postgres community will appreciate.

    They’ve built a script that generates **differential code coverage** between the latest release branch (currently `REL_18_STABLE`) and `HEAD`—a great way to track what’s being tested as the codebase evolves. Even better, it’s automated via GitHub Actions and published daily as an HTML report.

    Script: github.com/nbyavuz/postgres-co
    Live Report: nbyavuz.github.io/postgres-cod

    Whether you're contributing to Postgres or just curious about test coverage trends, this is worth a look. Kudos to the author for making this public and maintainable!

    If you have thoughts or suggestions, I’m sure they’d welcome feedback.

    #CodeCoverage #OpenSource #DevTools #Testing #GitHubActions

  16. #PostgreSQL Differential Code Coverage—Now Automated Daily!

    Just came across a fantastic initiative by [@nbyavuz](github.com/nbyavuz) that I think the Postgres community will appreciate.

    They’ve built a script that generates **differential code coverage** between the latest release branch (currently `REL_18_STABLE`) and `HEAD`—a great way to track what’s being tested as the codebase evolves. Even better, it’s automated via GitHub Actions and published daily as an HTML report.

    Script: github.com/nbyavuz/postgres-co
    Live Report: nbyavuz.github.io/postgres-cod

    Whether you're contributing to Postgres or just curious about test coverage trends, this is worth a look. Kudos to the author for making this public and maintainable!

    If you have thoughts or suggestions, I’m sure they’d welcome feedback.

    #CodeCoverage #OpenSource #DevTools #Testing #GitHubActions

  17. #PostgreSQL Differential Code Coverage—Now Automated Daily!

    Just came across a fantastic initiative by [@nbyavuz](github.com/nbyavuz) that I think the Postgres community will appreciate.

    They’ve built a script that generates **differential code coverage** between the latest release branch (currently `REL_18_STABLE`) and `HEAD`—a great way to track what’s being tested as the codebase evolves. Even better, it’s automated via GitHub Actions and published daily as an HTML report.

    Script: github.com/nbyavuz/postgres-co
    Live Report: nbyavuz.github.io/postgres-cod

    Whether you're contributing to Postgres or just curious about test coverage trends, this is worth a look. Kudos to the author for making this public and maintainable!

    If you have thoughts or suggestions, I’m sure they’d welcome feedback.

    #CodeCoverage #OpenSource #DevTools #Testing #GitHubActions

  18. Differential Code Coverage—Now Automated Daily!

    Just came across a fantastic initiative by [@nbyavuz](github.com/nbyavuz) that I think the Postgres community will appreciate.

    They’ve built a script that generates **differential code coverage** between the latest release branch (currently `REL_18_STABLE`) and `HEAD`—a great way to track what’s being tested as the codebase evolves. Even better, it’s automated via GitHub Actions and published daily as an HTML report.

    Script: github.com/nbyavuz/postgres-co
    Live Report: nbyavuz.github.io/postgres-cod

    Whether you're contributing to Postgres or just curious about test coverage trends, this is worth a look. Kudos to the author for making this public and maintainable!

    If you have thoughts or suggestions, I’m sure they’d welcome feedback.

  19. Seen this during my morning run.
    made me think of generated unit tests... for generated code.
    I came across this recently in a codebase, all in the noble pursuit of "code coverage."
    #CodeThoughts #GeneratedTests #CodeCoverage #DeveloperLife #CodingInsights #SoftwareEngineering #ProgrammingHumor #iosdev

  20. Seen this during my morning run.
    made me think of generated unit tests... for generated code.
    I came across this recently in a codebase, all in the noble pursuit of "code coverage."
    #CodeThoughts #GeneratedTests #CodeCoverage #DeveloperLife #CodingInsights #SoftwareEngineering #ProgrammingHumor #iosdev

  21. 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

    #CSudberyRecordings #CodeCoverage #MutationTesting #GildedRose #Refactoring #UnitTests

  22. 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

    #CSudberyRecordings #CodeCoverage #MutationTesting #GildedRose #Refactoring #UnitTests

  23. 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

    #CSudberyRecordings #CodeCoverage #MutationTesting #GildedRose #Refactoring #UnitTests

  24. 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

    #CSudberyRecordings #CodeCoverage #MutationTesting #GildedRose #Refactoring #UnitTests

  25. 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

  26. 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

  27. 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

  28. 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

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

    * opens editor *

    * CTRL+F *

    * @phpstan-ignore-line *

    * Found 587 occurrences *

    #Programming #PHP #PHPStan #Larastan #Laravel #Symfony #CodeCoverage #Coding #Code #SoftwareDevelopment #Software #WebDevelopment #WebDev

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

    * opens editor *

    * CTRL+F *

    * @phpstan-ignore-line *

    * Found 587 occurrences *

    #Programming #PHP #PHPStan #Larastan #Laravel #Symfony #CodeCoverage #Coding #Code #SoftwareDevelopment #Software #WebDevelopment #WebDev

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

    * opens editor *

    * CTRL+F *

    * @phpstan-ignore-line *

    * Found 587 occurrences *

    #Programming #PHP #PHPStan #Larastan #Laravel #Symfony #CodeCoverage #Coding #Code #SoftwareDevelopment #Software #WebDevelopment #WebDev

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

    * opens editor *

    * CTRL+F *

    * @phpstan-ignore-line *

    * Found 587 occurrences *

    #Programming #PHP #PHPStan #Larastan #Laravel #Symfony #CodeCoverage #Coding #Code #SoftwareDevelopment #Software #WebDevelopment #WebDev

  33. 🔥 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

    #Django #Python #Testing #CodeCoverage #TIL

  34. 🔥 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

    #Django #Python #Testing #CodeCoverage #TIL

  35. 🔥 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

    #Django #Python #Testing #CodeCoverage #TIL

  36. "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

  37. "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

  38. "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

  39. "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

  40. 🎥 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!

    #BaselOne24 #Java #CodeCoverage #Software