Giter VIP home page Giter VIP logo

Comments (13)

nakiostudio avatar nakiostudio commented on May 22, 2024

Hi @lomudi 👋

Have you run your tests before launching Danger? xcov depends on the output of a prior tests pass.

from danger-xcov.

lomudi avatar lomudi commented on May 22, 2024

yup @nakiostudio :)
the test runs a few steps before.
screen shot 2017-05-29 at 17 35 47

from danger-xcov.

nakiostudio avatar nakiostudio commented on May 22, 2024

Ok! another question. Do you have gather coverage enabled as specified here?

from danger-xcov.

lomudi avatar lomudi commented on May 22, 2024

yup yup...
you can see it enabled here.
screen shot 2017-05-29 at 18 10 07

while running xcov locally it's working fine.

i guess it's something with the path to the .xccoverage file.

from danger-xcov.

nakiostudio avatar nakiostudio commented on May 22, 2024

Indeed, do you have a custom derived data path?

from danger-xcov.

lomudi avatar lomudi commented on May 22, 2024

not that I'm aware... you have had such an issue with CircleCI? maybe something they are playing with during the build process.

from danger-xcov.

lomudi avatar lomudi commented on May 22, 2024

from the test phase of the process, i can see this path of drive data
Signing /Users/distiller/Library/Developer/Xcode/DerivedData/ZappPlugins-dtujruptfzsvuxcrtqbcbskwqygj/Build/Products/Debug-iphonesimulator/ZappPlugins.framework

from danger-xcov.

nakiostudio avatar nakiostudio commented on May 22, 2024

I remember transitioning from Jenkins to CircleCI and not having to do anything to make it work.

from danger-xcov.

nakiostudio avatar nakiostudio commented on May 22, 2024

Oh, that's helpful! in that case you don't need to set the derived_data_path option. Try without it.

from danger-xcov.

lomudi avatar lomudi commented on May 22, 2024

Tried before. I added it after looking for a solution, saw it here fastlane-community/xcov#13 so I gave it a shot.

from danger-xcov.

nakiostudio avatar nakiostudio commented on May 22, 2024

I think the problem is the project configuration or how the tests are launched.

  • Are you passing -enableCodeCoverage YES to xcodebuild to run your tests?
  • To confirm you have a project or xcodebuild config problem, could you run the job with SSH access and then inspect the contents of ~/Library/Developer/Xcode/DerivedData/ZappPlugins-dtujruptfzsvuxcrtqbcbskwqygj/Logs/Tests/ after running the tests? There should be a .xccoverage file in that folder.

from danger-xcov.

lomudi avatar lomudi commented on May 22, 2024

thanks @nakiostudio 🙏
it was a problem with my test script, now it's working 💯

from danger-xcov.

nakiostudio avatar nakiostudio commented on May 22, 2024

Great! 👍

from danger-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.