Giter Site home page Giter Site logo

Comments (13)

nakiostudio avatar nakiostudio commented on April 28, 2024

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.

wolesolana avatar wolesolana commented on April 28, 2024

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.

wolesolana avatar wolesolana commented on April 28, 2024

Happy New Year @nakiostudio! Any updates on this bug? Is it something I'm doing wrong?

from xcov.

thelvis4 avatar thelvis4 commented on April 28, 2024

Hi @wolesolana!
Is your Fastlane folder hidden (Project/.fastlane/)?
If yes, #103 should fix the issue.

from xcov.

wolesolana avatar wolesolana commented on April 28, 2024

Thanks for the response @thelvis4. No, my fastlane folder is not hidden.

from xcov.

thelvis4 avatar thelvis4 commented on April 28, 2024

@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.

wolesolana avatar wolesolana commented on April 28, 2024

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.

wolesolana avatar wolesolana commented on April 28, 2024

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.

wolesolana avatar wolesolana commented on April 28, 2024

Never mind. I think I found the answer in the documentation. Thanks for the help!

from xcov.

liang-notes avatar liang-notes commented on April 28, 2024

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.

gauravdalal avatar gauravdalal commented on April 28, 2024

@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.

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.

wolesolana avatar wolesolana commented on April 28, 2024

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.

KacperCzapp avatar KacperCzapp commented on April 28, 2024

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)

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.