Giter Site home page Giter Site logo

Comments (7)

manas-chaudhari avatar manas-chaudhari commented on April 28, 2024

Turns out my pbxproj still contained old name :/
Fixed

from xcov.

thelvis4 avatar thelvis4 commented on April 28, 2024

I was about to push a solution for this already 😄

I still think it's a good idea to compare case-insensitively as we cannot have both TestFolder and testfolder in the same place. 🤔
@nakiostudio what do you think about this?

from xcov.

manas-chaudhari avatar manas-chaudhari commented on April 28, 2024

In case we don't want to compare case-insensitively, perhaps a line in documentation mentioning that xcov reads path from pbxproj would help.

from xcov.

thelvis4 avatar thelvis4 commented on April 28, 2024

Not sure what reads path from pbxproj means in this context. 🤔
Can you give an example, please?

from xcov.

manas-chaudhari avatar manas-chaudhari commented on April 28, 2024

Sure. Let me indicate the scenario where case sensitivity causes a problem.

In pbxproj file, the path value is common/AppDelegate.swift. It looks as follows:

EB5B31471E40617900EB190F /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = NetworkCommons.swift; path = common/AppDelegate.swift; sourceTree = SOURCE_ROOT; };

In my file system, and in git, the directory's name is Common with a capital C. In this scenario, if I want to ignore this file for code coverage, I need to add common/AppDelegate.swift in my .xcovignore.

Thus, when I said reads path from pbxproj, I meant that xcov will match the ignore paths to the path values specified in pbxproj and not those on the file system.

Of course, we can assume that pbxproj and file system can differ only wrt case, otherwise the build would fail.

from xcov.

thelvis4 avatar thelvis4 commented on April 28, 2024

@manas-chaudhari Thanks for the example and a good explanation. 🙌

When this scenario happens, I believe, it would be easier to reason that matching ignored files/folders happens case sensitively than to dig into the project file to find out what's the case of the files/folders we want to ignore.
Suddenly, having case insensitive matching makes even more sense. 😄
I will open the PR I planned to open yesterday.

from xcov.

nakiostudio avatar nakiostudio commented on April 28, 2024

Thanks both @manas-chaudhari and @thelvis4 🙌

I agree with you @thelvis4, simplicity FTW :)

from xcov.

Related Issues (20)

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.