Questions tagged [slather]
16 questions
6
votes
0 answers
Slather command failed to execute. Xcode, Jenkins, Sonar qube
+ slather coverage --binary-basename Project --input-format profdata -i '.*Tests.*' --cobertura-xml --output-directory sonar-reports --workspace Project.xcworkspace --scheme ProjectTests Project.xcodeproj
ERROR: Unrecognised option…

Andrew Kramer
- 449
- 4
- 11
3
votes
1 answer
Using Slather w/ Fastlane
I am trying to use Slather w/ Fastlane.
My project Gem file
source "https://rubygems.org"
gem "fastlane"
gem "slather"
My Fastfile
platform :ios do
desc "Run unit tests"
lane :tests do
scan(workspace: "Home.xcworkspace", device: "iPhone…

Tim J
- 1,211
- 1
- 14
- 31
3
votes
1 answer
Publishing Slather Report to SonarQube
I am using Fastlane for building and testing my ObjC project. I use scan action to run Unit Test cases and slather action to generate Code coverage report.
I am able to generate cobertura.xml report using slather action, but unable to publish the…

Velu
- 31
- 1
- 2
3
votes
0 answers
Unable to ignore third party libraries from code coverage report in iOS
Testing an iOS app with Xcode inbuilt Unit test cases which is working fine , enabled code coverage which reports third party library in code coverage report , I want to know how to exclude third party libraries from code coverage report.

Shiwali
- 31
- 4
1
vote
1 answer
-bash: slather: command not found
Slather command not found error after successful installation. I have updated the commands used in Terminal. Can anyone help to identify the missing flags or setting?
MacBook-Pro-5:DemoAPP mackbook$ gem install slather
Successfully installed…

Gobi M
- 3,243
- 5
- 32
- 47
1
vote
1 answer
Ruby gem installation in mac fails
I tried to install "slather" using below command:
gem install slather
I am getting below errors one by one:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /Library/Ruby/Gems/2.6.0/gems/racc-1.5.2/COPYING
if I…

KNP
- 65
- 1
- 7
1
vote
0 answers
nokogiri requires Ruby version >= 2.3.0
I am setting up Fastlane with Slather.
The slather step is failing with
[13:55:11]: nokogiri requires Ruby version >= 2.3.0.
running ruby -v I get
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

Harry Blue
- 4,202
- 10
- 39
- 78
1
vote
1 answer
slather error, when trying to get code coverage
I'm looking to use Slather to export unit test code coverage to TeamCity, however I am running into issues even getting it to run, and I'm a little confused as I'm not finding other people encountering this error. So hopefully someone can help me.…

Jason K
- 71
- 1
- 8
0
votes
1 answer
When running slather i see ruby error bad interpreter error
I'm trying to get the coverage result of the tests for IOS. I use the slather coverage command. But I keep getting the error
/Users/bamboo/.gem/bin/slather: /Users/bamboo/.rbenv/versions/3.1.0/bin/ruby: bad interpreter: No such file or…

Vitalii Fedorenko
- 279
- 6
- 18
0
votes
1 answer
Slather Xcode test specific Group
I need the code coverage for a specific Group(Folder) in my Xcode project with slather.
Already tried config file .slather.yml with property ignore. The generated html has files listed in third libraries (Swift PM). I am just interested in a…

CodeSun
- 206
- 2
- 12
0
votes
1 answer
Slather failing - running Sonar-Qube with an Xcode project. Error code: 127
I am running a Sonar script and and it has a "Slather Coverage" command in it, and it is erroring out with the following error message:
ERROR - Command 'slather coverage --binary-basename GC --input-format profdata -i .Tests. --cobertura-xml…
0
votes
1 answer
how to generate Coverage.profdata on Xcode
first of all thank you in advance for helping me figure this out.
I recently try using slather to produce a code coverage report for my xcode project, but when i execute slather it fail with error below
Are you sure your project is generating…

auyotoc
- 1
- 1
- 2
0
votes
2 answers
Slather Gem installation giving error
Slather installation is giving error in Mac.
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

Savitha
- 561
- 6
- 19
0
votes
0 answers
No Slather Cobertura XML Outputs
I am currently configuring a Jenkins job to run a suite of unit tests for an iOS project and publish code coverage results with Cobertura. I am using Slather to generate the .xml coverage report for Cobertura. The problem I am running into is that…

moonboy
- 1,296
- 4
- 16
- 29
0
votes
1 answer
Error env: ruby_executable_hooks: No such file or directory while running Slather on Jenkins
I am trying to configure slather on my Jenkins server. Everything works fine when I run slather command using Terminal, but the script seems to fail when I run it on the Jenkins server. Each time I get env: ruby_executable_hooks: No such file or…

sandy
- 2,127
- 4
- 28
- 50