Comments (13)
Hi @wolesolana 👋
Thanks for reporting, could you try placing the .xcovignore
file in the path where fastlane
is run from?
You can also specify the path to the file using the ignore_file_path
argument.
from xcov.
Thanks for the response @nakiostudio ( I appreciate you reaching out on Christmas day). I tried using the ignore_file_path
argument using an absolute reference to the .xcovignore
file but I still got the same error.
When you say I should place the .xcovignore
file in the fastlane
path, what do you mean? I run fastlane using bundle exec fastlane
.
from xcov.
Happy New Year @nakiostudio! Any updates on this bug? Is it something I'm doing wrong?
from xcov.
Hi @wolesolana!
Is your Fastlane folder hidden (Project/.fastlane/)?
If yes, #103 should fix the issue.
from xcov.
Thanks for the response @thelvis4. No, my fastlane
folder is not hidden.
from xcov.
@wolesolana Can you, please, check if the syntax of .xcovignore
is correct, by running:
$ irb
and then (in interactive mode):
require 'yaml'
ignore_file_path = "/Path/to/your/.xcovignore"
YAML.load_file(ignore_file_path)
* Replace /Path/to/your/.xcovignore
with the path where .xcovignore
stays.
from xcov.
Hi @thelvis4, I did what you suggested and I got this error output:
Psych::SyntaxError: did not find expected alphabetic or numeric character while scanning an alias at line 3 column 3
from /ruby-2.4.2/lib/ruby/2.4.0/psych.rb:377:in `parse'
So I guess my xcovignore
file is not written properly? Here's the text of my .xcovignore
file:
# Generated Resource Files
- R.generated.swift
- *.json
# Exclude all dependencies
- Frameworks/
I'm suspecting the issue is with the *.json
line?
from xcov.
I just took out that line and everything runs fine. What is the correct syntax to ignore all files of a particular type? Since it seems the *.file_type
syntax generates an error?
from xcov.
Never mind. I think I found the answer in the documentation. Thanks for the help!
from xcov.
Never mind. I think I found the answer in the documentation. Thanks for the help!
hi, when I excute the command in terminal, It work!, But I meet the same issue in Jenkins with you, can you help me How did you work at last?
from xcov.
@wolesolana Can you, please, check if the syntax of
.xcovignore
is correct, by running:$ irband then (in interactive mode):
require 'yaml' ignore_file_path = "/Path/to/your/.xcovignore" YAML.load_file(ignore_file_path)
- Replace
/Path/to/your/.xcovignore
with the path where.xcovignore
stays.
I'm a newbie and have few questions.
Q1: Is this .xcovignore an file extension or is it a ruby file, since @thelvis4 suggested to run irb command. Not quite sure about the file type?
Q2: Where to put this file on directory level ? Fastlane folder is not hidden and existing in "code" folder in my repo workspace and this .xcovignore file is inside that fastlane folder. Why seems to be not working with this message - Skipping file blacklisting as no ignore file was found at path ./fastlane/.xcovignore .
Q3: Does this flag "include_targets" works ? Have passed comma separated and single values in this and nothing happens, it simply shows 0% coverage in json /html file.
Working on Jenkins (also ran through teminal) on mac running on catalina 10.15.2 with XCode 11.4
from xcov.
Hi @gauravdalal. I haven't used xcov
in a while, but unless something has changed drastically, here are my answers to your questions, AFAIK:
Q1: .xcovignore
is a plain text file
Q2: I put the .xcovignore
file at the top level of the fastlane
folder
Q3: I'm not sure about this.
You could check the README for the latest documentation on how to set this up as I think my original issue has been resolved.
from xcov.
In my case it was the issue of having:
- *Request.swift
- *Response.swift
instead of
- .*Request.swift
- .*Response.swift
(notice the dot before the asterisk)
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.