Giter VIP home page Giter VIP logo

Comments (3)

viteinfinite avatar viteinfinite commented on May 18, 2024

Hey, sorry for the delay. For more logs, you can run sonar runner with the -e or -X options.
Also, please double check your report file (and the paths in it).
HTH

from sonar-swift.

mgrebenets avatar mgrebenets commented on May 18, 2024

@lukewar What are the paths in your cobertura.xml?
Could it be related to #36?

Also, what's your sonar.swift.coverage.reportPattern value in sonar-project.properties?
I had it set to stuff like .fastlane/coverage*.xml, sonar-reports/coverage*.xml.
I tried sonar.swift.coverage.report too, but it didn't work.

Only after I removed all sonar.swift.coverage.report... lines from properties file and put a report into sonar-reports directory, I saw a message like this in sonar runner log:

- Processing coverage report /Users/path/to/project/sonar-reports/coverage.xml

from sonar-swift.

lukewar avatar lukewar commented on May 18, 2024

Thanks guys for helping me with investigating this issue. It is weird since I have 4 other projects where everything works just fine. All projects have sources in both Swift and Obj-C.

Eventually I have found what was the reason. This project had tests written only in Obj-C. Apparently sonar-runner implementation is skipping coverage check if /*Tests directory does not contain any file with .swift extension. Adding empty file with .swift extension resolved this.

I will answer questions from previous comments as somebody may find it useful:

  • unrelated to #36, my coverage report had proper paths
  • I have sonar.swift.coverage.reportPattern set to reports_output/cobertura.xml

from sonar-swift.

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.