Comments (7)
Turns out my pbxproj still contained old name :/
Fixed
from xcov.
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.
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.
Not sure what reads path from pbxproj
means in this context. 🤔
Can you give an example, please?
from xcov.
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.
@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.
Thanks both @manas-chaudhari and @thelvis4 🙌
I agree with you @thelvis4, simplicity FTW :)
from xcov.
Related Issues (20)
- Swift Package Manager Mandatory fields
- [!] Could not find option 'workspace' in the list of available options: HOT 2
- Reports 0% Code Coverage with Xcode 12.5
- Exclude subset of ignored files in .xcovignore HOT 1
- xccov_file_direct_path cannot treat with multiple files
- Missing `clean: true` to delete the existing code coverage data HOT 3
- Parsing Coverage Data for Swift Packages HOT 1
- Invalid coverage report for SPM with dependencies HOT 2
- Missing git information when uploading to coveralls
- Could not find option 'xccov_file_direct_path' in the list of available options HOT 1
- Modernize HTML templates
- Fix root directory when opening files
- How can we ignore `Swift Package Dependencies` HOT 4
- Bad CPU type in executable HOT 6
- .xcovignore file not working HOT 1
- Target with no valid files is considered as having 0% coverage
- Xcov 1.8.1 : Xcov not able to find ignore file path HOT 4
- Include files (opposite of ignore)
- `PBXProject` attempted to initialize an object with unknown ISA `XCLocalSwiftPackageReference`
- "Error occured while exporting xccovreport from xcresult" when "xcov_report" folder already exists HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcov.