What code coverage threshold is good? What is considered too high?

Hi everyone Our codebase has unit test code coverage thresholds func, stat, condition, branch set as 99%. Is it considered too high? Should we lower it? Is it inhumane? What threshold is considered decent?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/0-07i
πŸ“…︎ Jan 11 2022
🚨︎ report
a test of Kover : Code Coverage plugin for Kotlin lengrand.fr/kover-code-co…
πŸ‘︎ 27
πŸ’¬︎
πŸ‘€︎ u/jlengrand
πŸ“…︎ Dec 23 2021
🚨︎ report
[Brahma Chellaney] In India, the glaring absence of journalistic codes of ethics or self-regulation mechanisms like news ombudsmen facilitates China's media-related influence operations, like this four-page insert in the Indian Express. Such well-paid "ads" are also rewards for favorable coverage.
πŸ‘︎ 105
πŸ’¬︎
πŸ‘€︎ u/ChirpingSparrows
πŸ“…︎ Nov 28 2021
🚨︎ report
Automate UT for 80% code coverage

We are working on an alpha for a solution enabling freelancers and small teams to generate 80% code coverage automatically for their projects. The thinking behind is that freelance devs have tight deadlines and want to reduce time spent on unit tests as much as possible without jeopardizing the quality they deliver.

The freelancers I've talked to so far tell me they usually do have high code coverage on what they deliver but their clients never asks about it so it's not really valuable for them to unit test. Is this something you would say is standard in the industry?

The Alpha works for Typescript backend projects and we are really looking hard for some feedback to see if this has a good real life applications if you want to see how it works (link)

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Ponicode
πŸ“…︎ Dec 20 2021
🚨︎ report
fuzzcheck 0.9 release - run coverage-guided fuzz tests alongside your regular unit tests + code coverage visualiser + new online guide and improved documentation

Hi everyone,

I just released version 0.9 of fuzzcheck. I also released a guide for it, located at <https://fuzzcheck.neocities.org>.

It's a big update compared to 0.7 because it is now built on top of rustc’s -Z instrument-coverage instead of LLVM's SanitizerCoverage. This has allowed me to simplify the process of running fuzz tests and to implement new functionality. Here is some of what is new:

Fuzz tests can now be defined by a regular #[test] function alongside your other unit tests

A fuzz test can be declared as simply as:

#[cfg(test)]
mod tests {
    #[test]
    fn fuzz() {
        let result = fuzzcheck::fuzz_test(my_test_function)
            .default_options()
            .launch();
        assert!(!result.found_test_failure);
    }
}

and launched with:

cargo fuzzcheck tests::fuzz

where cargo fuzzcheck is just a thin wrapper over cargo test, to help pass the right arguments.

A new tool to view code coverage after fuzzing

This Github comment shows what the code coverage viewer, named fuzzcheck-view, looks like. Notice that when the mouse hovers a region of code, the simplest test case to hit that region is displayed on the right. This may be useful to understand a new codebase or to refine one's assumption about the code. Also note the β¦Ώ sign, which indicates an unwritten β€œelse” branch.

Modularity

It is now possible to customize most parts of the fuzzer. So it is possible to use feedback other than code coverage, or to interpret the feedback differently. I have used this new extensibility to bring new features. Now, during a fuzz test, these additional set of test cases are saved to the file system:

  • diverse_cov_N is a set of N test cases that, combined, cover the most code. N is configurable, but by default I chose N=1 and N=20.
  • max_total_cov_hits is a single test case that is likely to take a long time to run due to bad algorithmic time complexity
  • test_failures are failing test cases, categorized by their panic location and sorted by complexity

Grammar-based fuzzing

Fuzzcheck has always been a structure-aware fuzzer. That made it easy to fuzz-test enums, strings, and vectors. But it didn't have

... keep reading on reddit ➑

πŸ‘︎ 44
πŸ’¬︎
πŸ‘€︎ u/loiclec
πŸ“…︎ Nov 19 2021
🚨︎ report
How to generate code coverage reports in Xcode sarunw.com/posts/how-to-g…
πŸ‘︎ 33
πŸ’¬︎
πŸ‘€︎ u/sarunw
πŸ“…︎ Dec 22 2021
🚨︎ report
Swift package code coverage (plus Emacs overlay) xenodium.com/swift-packag…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/fakecreditcard
πŸ“…︎ Jan 03 2022
🚨︎ report
Just got this off the site. Coupon code in pic. Also purchased the accidental coverage and adobe elements included in price
πŸ‘︎ 29
πŸ’¬︎
πŸ‘€︎ u/Sofa_King_cooI
πŸ“…︎ Oct 05 2021
🚨︎ report
Trial Sim says "This zip code not in coverage area" even though coverage map says yes?

Coverage map shows service down to house location level, but trial sim says my zip code is not a coverage area - anyone else have this happen? Hard to switch if it won't let me!

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/taway1NC
πŸ“…︎ Dec 22 2021
🚨︎ report
[Brahma Chellaney]In India, the glaring absence of journalistic codes of ethics or self-regulation mechanisms like news ombudsmen facilitates China's media-related influence operations, like this four-page insert in the Indian Express. Such well-paid "ads" are also rewards for favorable coverage.
πŸ‘︎ 39
πŸ’¬︎
πŸ‘€︎ u/ChirpingSparrows
πŸ“…︎ Nov 28 2021
🚨︎ report
[Brahma Chellaney]In India, the glaring absence of journalistic codes of ethics or self-regulation mechanisms like news ombudsmen facilitates China's media-related influence operations, like this four-page insert in the Indian Express. Such well-paid "ads" are also rewards for favorable coverage.
πŸ‘︎ 75
πŸ’¬︎
πŸ‘€︎ u/ChirpingSparrows
πŸ“…︎ Nov 28 2021
🚨︎ report
Employer denying Employer-Provided EAP Medical Coverage AFTER EAP Authorization codes for treatment were generated and provided

To keep a long story short - my employer (international company) has an EAP Benefits program. They pushed it hard last year during COVID, especially for mental health treatment.

After a number of phone calls, the EAP provider generated treatment authorization codes for 2020 and 2021. Base insurance provider changed from UHC in 2020 to BCBS in 2021 but the EAP provider remained the same.

After the codes were generated (after providing my medical providers information), and only AFTER the codes had been used to bill for the alloted amount of EAP-provided treatment sessions, ALL of the pre-authorized 2021 claims were denied. The 2020 claims were not denied.

I have spent the last 6 months trying to resolve this issue with both the EAP provider and my Employers HR/Benefits team. No resolution has been found and communication seems to be alluding to my employer washing their hands with the situation and not providing any sort of solution.

I'm trying to understand what my legal grounds here are. The outstanding medical balances is really not as much of a concern as is my employer claiming to provide a benefit and then dropping the ball when their contracted benefit provider has a hiccup.

If my employer refuses to somehow compensate for the medical benefit that is currently essentially being denied - what are my legal grounds of remedy? Short of opting to leave the company for failing to provide contractually-obligated benefits?

πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/geekinterests
πŸ“…︎ Nov 01 2021
🚨︎ report
Medicare Coverage Helpline - i cAlLeD tO cHeCK mY ziP coDe! ispot.tv/ad/qfyL/medicare…
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/nfsnltvc15
πŸ“…︎ Oct 22 2021
🚨︎ report
Raku code coverage - JJ Atria raku-advent.blog/2021/12/…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/liztormato
πŸ“…︎ Dec 09 2021
🚨︎ report
Write better tests, with less code, and greater coverage jrsinclair.com/articles/2…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/jrsinclair
πŸ“…︎ Nov 15 2021
🚨︎ report
Simple Code Coverage Visualizer in PHP

It seems the big code coverage services only work for code hosted on one of the big git hosting platforms. I have open source projects on a project-dedicated (but public) GitLab host but can’t use coveralls.io to see the coverage. I whipped up a simple php site a couple nights ago to display the coverage from a coveralls-upload.json file that you can host on your own server. https://github.com/Beakerboy/Coveralls-Visualizer Please look it over and contribute if you like it. On the flip-side, if anyone knows of anything like this that’s already out there and better, I’d love to know.

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/TheRealBeakerboy
πŸ“…︎ Nov 06 2021
🚨︎ report
Units converter package with 100% code coverage πŸŽ‰

Few days ago I released the first stable relase of units_converter. It is a unit converter package written in dart that has 100% test coverage (this is very important with this kind of libraries, it does one thing and it has to do it well). It also has a permissive license.
This package is used in Converter NOW, a multiplatform (android, web, windows, linux) unit converter app written in Flutter.

πŸ‘︎ 28
πŸ’¬︎
πŸ‘€︎ u/damiano-ferrari
πŸ“…︎ Oct 29 2021
🚨︎ report
2.1 livestream coverage / gift codes

https://preview.redd.it/yvvgvkxglhi71.jpg?width=1920&format=pjpg&auto=webp&s=5b0a26f5b77563f413649d0e23b56bd6aa7281fb

Official coverage

Other coverage

Livestream highlights

  • The Bilibili stream has begun 5 minutes ahead of the scheduled Twitch stream.
  • Live translation on the WFP Twitch channel if anyone's interested.
  • CN VAs chiming in at the start. Keqing VA talking about upcoming Mooncake festival.
  • All VAs mentioning 1 year of Genshin. Hopefully we get a surprise :)
  • Klee wishes Genshin a happy 1st anniversary.
  • Kaeya and Dainsleif also talk about the anniversary.
  • CEO Wei now makes an appearance and is talking about the 1st anniversary being special.
  • 2.1 preview video on screen. Lots of purple.
  • Twitch stream still offline :S
  • Signora unveiled. Same costume as in the PS promotional images leaked.
  • Kokomi introduction. Now Raiden. Aether vs. Raiden with Yae whispering in his ear.
  • WOW! SCARAMOUCHE being mysterious!
  • PV ends and CEO Wei is back with 2 devs: an editor and animation director.
  • Sitting in a Liyue style cafe and talking about the Moonchase festival. Liyue's food culture will be a central theme apparently.
  • The Japanese version of the PV is already up on Twitter: https://twitter.com/Genshin_7/status/1428703668337926150
  • Keqing confirmed for Moonchase festival. Xiangling will also be a guide and other Liyue characters will also show up.
  • 2 main events: one involves collecting items around Liyue. One of the rewards is a fish-looking weapon which can be fully refined.
  • Other event is a combat event: different food-related buffs available. 10 intertwined fates available as reward.
  • Bonus genesis crystal offer will be reset for anniversary.
  • Weird Genshin KFC ad being played. Probably
... keep reading on reddit ➑

πŸ‘︎ 93
πŸ’¬︎
πŸ‘€︎ u/hearthfos
πŸ“…︎ Aug 20 2021
🚨︎ report
Code coverage level measurement in Raku rakurs-atroxaper-net.tran…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/liztormato
πŸ“…︎ Oct 25 2021
🚨︎ report
Legacy code coverage catchup with mass unit test generation npmjs.com/package/ponicod…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/Separate_Run2806
πŸ“…︎ Sep 29 2021
🚨︎ report
Why is so insanely difficult trying to check coverage of certain CPT codes with Anthem BCBS?

It's Open Enrollment season and I'm trying to decide between two different plans under Anthem. In the live agent chat session on their website, I asked them about whether a few CPT codes are covered under the other one, and all I get is "We have no accurate information of other plans until you are a member of it." How am I supposed to plan if I don't know whether it'll be covered or not? Is it safe to say that if a CPT code is covered under one Anthem plan, then it'll definitely be covered another?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/plucesiar
πŸ“…︎ Oct 11 2021
🚨︎ report
Are coverage indicators for lines of code working on gitlab ATM?

I used to be able to see the coverage of lines of code (red and green indicators) in MRs where the coverage report is setup via gitlab-ci, but it’s been a while that I don’t see that anymore. Has something changed? Is it broken? Or is it just me?

If it’s working, can you give me a link to a file/mr diff where it’s visible ? I checked many public repos, including the repo for gitlab’s code base itself…

Thanks

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/slower_wifi
πŸ“…︎ Oct 23 2021
🚨︎ report
Watch the talk on the recently announced Gradle plugin for Kotlin code coverage measurements! youtu.be/jNu5LY9HIbw
πŸ‘︎ 21
πŸ’¬︎
πŸ‘€︎ u/Anisim_1
πŸ“…︎ Nov 06 2021
🚨︎ report
Code Coverage in Selenium

Anyone know how to get Code Coverage from Selenium UI tests? My QA team is writing chrome driver automation that is running as a job in an Azure DevOps pipeline. We noticed that there is Code Coverage option but it doesn’t produce any results for the Selenium tests. Any advice is appreciated.

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/g3omath
πŸ“…︎ Oct 05 2021
🚨︎ report
Code Coverage Percentage for Lines Changed in PR

I'm looking for a project/tool that takes a code coverage report from PHPUnit and cross-checks it with the lines changed in the branch and spits out the percentage of code coverage for the lines changed. Does such a thing exist?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/warren5236
πŸ“…︎ Nov 08 2021
🚨︎ report
99.346% Code coverage achieved on LGBCoin smart contracts
πŸ‘︎ 4
πŸ’¬︎
πŸ“…︎ Nov 14 2021
🚨︎ report
2017 Volt Emissions Warranty Coverage and Evap Code

Recently got a check engine light on 2017 Volt. Code is P0442 Evap leak small. I've checked the cap a few times and reset the code but it keeps coming back.

I am aware there is an extended emissions warranty on the volt and had to fight a dealer to get my egr cooler replacement covered (which I eventually won).

My question is if anyone has experience with this and if the fix will be covered? I don't want to pay dealer rates for something I expect to be small...but of course hate the idea of paying for something that GM should be covering.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Engineeryman
πŸ“…︎ Nov 16 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.