Comments (11)
Please add the Slather part of your fastlane console output. I know other people have sonarqube working with slather 2.8.0 so we need to figure out what's different/going wrong for you.
from slather.
My xcode version in local is 15.2, BM has 15.0.1
in my local, i m getting .xml report generated properly but
build machine , generating only 2 lines inside report
=>
=>
i now have switched the versions 2.8.2, 2.8.1, 2.8.0, 2.75 .....
nothing works to generate the sonarqube-generic-coverage.xml. can you someone tell the root cause why its not generating from slather?
we have a release by next week. if this not solved, we are doomed 😢 .
if anything related to coverage_serive: sonarqube_xml have been changed, kindly check and fix it pls.
@ksuther @jarrodlombardo-EventBase
from slather.
Hello
I am getting the same issue.
I have tried with updating all the latest the versions of Slather.
I have tried installing XCode 15.4 since 15.2 was not available.
But still slather is generating report with empty sonarqube_xml data.
Kindly look into this on urgent basis?
from slather.
@jarrodlombardo-EventBase @ksuther
log is clean, no errors reported.
i can see slather is doing its work but observed sonarqube.xml file is empty with no data and printing 1st 2 lines. shared you the lines in below comment xml version 1.0 \n coverage version 1.0 ?
eg:
o/p in fastlane log
19:56:30: --- Step: slather ---
19:56:30: ---------------------
19:56:30: $ slather coverage --jenkins --sonarqube-xml --build-directory ./Packages/Account/DerivedData --source-directory ./Packages/Account/Sources --output-directory ./sonar-reports/Account --verbose --scheme XXXX --binary-basename Account.o ./XXX.xcodeproj
[19:56:31]: ▸ Slathering...
[19:56:33]: ▸ Processing coverage file: /Users/iswaria.sasi/Documents/sourcecode/projectXXXX/Packages/Account/DerivedData/Account/Build/ProfileData/7C717D9C-73E8-453A-9028-13E27FCDC35B/Coverage.profdata
[19:56:33]: ▸ Against binary files:
[19:56:33]: ▸ /Users/iswaria.sasi/Documents/sourcecode/projectXXXX/Packages/Account/DerivedData/Account/Build/Products/Debug-iphonesimulator/Account.o
[19:56:33]: ▸ Slathered
We dont use any .slather.yml instead passing the commands directly in fastlane
from slather.
i Just verified the .xcresult file generated after test and i can able to see the coverage % in it.
not sure why slather is generating empty sonarqube-generic-coverage.xml file (46 bytes)
from slather.
can we have any update here
from slather.
This issue is resolved, i upgraded the MacOS from sonoma 14.1.1 to 14.5 and downgraded some versions to fix the issue.. slather started generating coverage xml files for sonarqube-generic-coverage.xml format. Hope this information helps for anyone who is going through this issue.
issue :
slather 2.8.0
fastlane 2.221.1 downgraded to 2.217.0
ruby 3.3.3
rubygems 3.5.13
bundler 2.5.13 downgraded to 2.4.6 (locked)
xcode version 15.0.1
macos - sonoma 14.5
from slather.
closing this issue @ksuther @jarrodlombardo-EventBase
from slather.
I'm glad this resolved, but what changed with your upgrade? My guess is your DerivedData folder moved or something else controlled by MacOS or XCode changed, but do you have any idea what it was?
from slather.
@jarrodlombardo-EventBase i am actually not sure what was the exact issue. i switched back to the old versions when it was working fine with latest macos 14.5. it worked.. but issue still persists with newer versions... somewhere ther is discrepency.
in my Local, which had newer versions for everything is working perfectly fine... but same thing on Old version Macos/Ruby/bundler it wasnt working.
please try to fix the discrepency in old and same versions.. we shall need to update newer versions anytime soon.
from slather.
That's just it though; the issue is something in your system (OS, Env, something), not Slather. Without knowing what is going wrong with the system, we can't modify Slather to try to work around whatever is changing in your system.
from slather.
Related Issues (20)
- Update Nokogiri to version >= 1.14.3
- Coverage.profdata not found - Xcode 14.3 - Xcode 15.0 HOT 12
- Slather empty result on Jenkins CI HOT 2
- Include files (opposite of ignore) HOT 3
- Failing to load coverage HOT 4
- Support for path equivalence/relocation.
- Clean checkout of master has many test failures. HOT 2
- New version number HOT 3
- Is this project still maintained? HOT 2
- Error when installing gem slather HOT 4
- Unable to get code coverage to sonarcloud HOT 1
- Slather can't find Coverage.profdata if project is setup to use Xcode test plan HOT 5
- Different coverage percentage from XCode report HOT 4
- Since the Cobertura coverage-04.dtd document URL is http, sonar-scanner cannot format it HOT 2
- Can we get a 2.8.1 release? HOT 5
- 2.8.1 version causing report generated empty HOT 16
- Failed to parse cobertura.xml in Xcode15 HOT 8
- Slather failing with Xcode 16 beta 4 HOT 2
- No scheme named 'MyScheme' found (Xcode 15.4) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slather.