New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcov not picking up .xcovignore file #102
Comments
Hi @wolesolana 👋 Thanks for reporting, could you try placing the You can also specify the path to the file using the |
Thanks for the response @nakiostudio ( I appreciate you reaching out on Christmas day). I tried using the When you say I should place the |
Happy New Year @nakiostudio! Any updates on this bug? Is it something I'm doing wrong? |
Hi @wolesolana! |
Thanks for the response @thelvis4. No, my |
@wolesolana Can you, please, check if the syntax of $ irb and then (in interactive mode): require 'yaml'
ignore_file_path = "/Path/to/your/.xcovignore"
YAML.load_file(ignore_file_path) * Replace |
Hi @thelvis4, I did what you suggested and I got this error output:
So I guess my
I'm suspecting the issue is with the |
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 |
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? |
I'm a newbie and have few questions. 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 |
Hi @gauravdalal. I haven't used Q1: . You could check the README for the latest documentation on how to set this up as I think my original issue has been resolved. |
In my case it was the issue of having:
instead of
(notice the dot before the asterisk) |
Hi,
I created a
.xcovignore
file in the default path forxcov
(.fastlane/.xcovignore
) but I keep getting this warning when I run my test suite:This creates a problem as I have a number of files I need to ignore to get accurate coverage report. Is this a bug or am I missing something in my setup?
I am using
xcov 1.3.1
andfastlane 2.70.3
Thanks for your help.
The text was updated successfully, but these errors were encountered: