GithubHelp home page GithubHelp logo

Comments (8)

a7ex avatar a7ex commented on June 27, 2024 2

Hi!
Great that you contribute, I am traveling until tomorrow and can only look into it tomorrow.
I learned a couple of weeks ago that now there is a much faster way to get the coverage and was postponing to implement the change into xcresultparser... Procrastinating again :-)
Now I will definitely take the time to collaborate again asap!

from xcresultparser.

MatthewTHFisher avatar MatthewTHFisher commented on June 27, 2024 1

@hisaac Ahhhh ok I glanced over the MR but assumed it didn't solve the actual issue which is in the file CoverageConvertor.swift because there were no changes to it. I'll checkout the PR to see if it solves the problem!

As for how I use the execution count ("hits"); I do all my work with GitLab and they offer test coverage visualisation in their MRs. Using this allows me to quickly hover over covered lines to see how many times a piece of code has been 'hit', this has been handy to easily check that a piece of code has been tested a suitable amount of times.

For example, a function that verifies if an email is valid or not, testing it once would technically mean it's covered (and GitLab will highlight anything >=1 hits in green to show its been covered), but I would still flag it up that it has not been tested enough.

So the issue is a little annoying for code that has 100 hits because xcresultparser just says its only has 1 hit.

from xcresultparser.

hisaac avatar hisaac commented on June 27, 2024 1

Ah gotcha, yeah perhaps the solution you have in mind is more effective. Never hurts to open a PR with ideas. 😊

from xcresultparser.

MatthewTHFisher avatar MatthewTHFisher commented on June 27, 2024

Think I figured the issue out! Will make a PR soon!

from xcresultparser.

hisaac avatar hisaac commented on June 27, 2024

There's actually an open PR from @maxwell-legrand that will fix that issue (among some other things) #25

from xcresultparser.

hisaac avatar hisaac commented on June 27, 2024

Just out of curiosity, how are you using the execution count? We were just discussing yesterday how someone might use that value.

from xcresultparser.

hisaac avatar hisaac commented on June 27, 2024

And that's a cool feature of GitLab! I wasn't aware of that.

from xcresultparser.

MatthewTHFisher avatar MatthewTHFisher commented on June 27, 2024

Yeah it is pretty nifty! Shame that GitHub doesn't have it!

from xcresultparser.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.