Giter Club home page Giter Club logo

Comments (8)

daviddoyle1571 avatar daviddoyle1571 commented on September 14, 2024

I'd also be interested in Cobertura format reports - we can use the HTML generated but I think we'll lose our coverage trends by doing so.

from xcodecoverage.

rolandkakonyi avatar rolandkakonyi commented on September 14, 2024

Check this solution https://github.com/eriwen/lcov-to-cobertura-xml, it works well for me. I modified the "getcov" script to use the python script from it. More advanced solution would be to use for example "--format" parameter to set the wanted output format (html/cobertura-xml)

from xcodecoverage.

killian90 avatar killian90 commented on September 14, 2024

@rolandkakonyi Every time I try to use that tool, I get an error saying "unable to convert". I'm not particularly sure what file I should be pointing it at? Any tips?

from xcodecoverage.

rolandkakonyi avatar rolandkakonyi commented on September 14, 2024

try this:
https://github.com/rolandkakonyi/XcodeCoverage/blob/master/getcov

I changed my forked copy to use that tool.
I'm using it on a company jenkins-ci and it is working well.
I should create a pull request.

from xcodecoverage.

killian90 avatar killian90 commented on September 14, 2024

@rolandkakonyi Thanks for that. I gave it a go running python lcov_cobertura.py lcov-file.dat but no dice. I'm trying to get it running on jenkins too, but testing in a local repo at the moment.

Running with Xcode 6.1 on Yosemite, if that makes any difference. The plain XcodeCoverage tool works a treat.

The error/message I get is Unable to convert lcov-file.dat to Cobertura XML I've searched for that file on my system and I can't find it. I've tried pointing to the Coverage.info and index.html as well, with the same error

from xcodecoverage.

rolandkakonyi avatar rolandkakonyi commented on September 14, 2024

@killian90 I'm using Yosemite & Xcode 6.1 too.
You should use the argument "--format cobertura-xml" on my script.
like:
"XcodeCoverage/getcov --format cobertura-xml"

(note: result coverage.xml file will be under XcodeCoverage folder)

the python script should be used with arguments -b and -o
like:
python lcov_cobertura.py lcov-file.dat -b ${SRCROOT of the tested project (not the test project) } -o ${DESTINATION_XML_FILE}

from xcodecoverage.

killian90 avatar killian90 commented on September 14, 2024

@rolandkakonyi I completely misunderstood what I was supposed to be doing with your file. It's working now to the point where it just prints the coverage file to terminal. I feel like I'm missing something obvious.

I've piped the output to a file to see if there was any errors (couldn't scroll back to the beginning of the xml output) and there are none.

from xcodecoverage.

jonreid avatar jonreid commented on September 14, 2024

Just merged pull request #29 which adds Cobertura support

from xcodecoverage.

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.