Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Is it possible to use it without project configuration (`xcodeproj`)?

Abierto
#515 1 comentario 9 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ruby, swift
Área
tooling

Línea de trabajo

Start with the coverage command setup path named in the error, especially lib/slather/command/coverage_command.rb, and trace where project configuration is required. Determine whether coverage can be generated from the supplied build artifacts without an .xcodeproj; the issue is resolved when Slather supports that workflow or clearly documents the required configuration. The discussion has had no response for years.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I'm trying to generate a coverage report for a Swift Package.

I'm currently generating the report with a command like this:

xcodebuild test \
    -scheme BokenEngine \
    -destination "platform=iOS Simulator,name=iPhone 11" \
    -enableCodeCoverage=YES \
    -derivedDataPath=.DeriveData
ld -r \
    -o ./CombinedObject.o .DeriveData/Build/Intermediates.noindex/BokenEngine.build/Debug-iphonesimulator/BokenEngine.build/Objects-normal/arm64/*.o
xcrun llvm-cov report \
    --format=text \
    --instr-profile=".DeriveData/Build/ProfileData/860AB2C1-6615-42E7-93A8-9067DF75E7BA/Coverage.profdata" \
    --object="./CombinedObject.o"

I tried to use Slather but I get this error:

% slather coverage -s --scheme BokenEngine --build-directory ".DerivedData" --binary-file "./CombinedObject.o"
Slathering...
/Users/josecelano/.rvm/gems/ruby-3.0.0/gems/slather-2.7.2/lib/slather/command/coverage_command.rb:110:in `project': Must provide an xcodeproj either via the 'slather [SUBCOMMAND] [PROJECT].xcodeproj' command or through .slather.yml (StandardError)
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/slather-2.7.2/lib/slather/command/coverage_command.rb:67:in `setup_build_directory'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/slather-2.7.2/lib/slather/command/coverage_command.rb:44:in `execute'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/gems/slather-2.7.2/bin/slather:17:in `<top (required)>'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/bin/slather:23:in `load'
	from /Users/josecelano/.rvm/gems/ruby-3.0.0/bin/slather:23:in `<main>'

Would it be possible to use Slather without any project configuration?

By the way, I was looking for a GitHub Action to run Slather but I have not found it.

Lenguaje dominante
Ruby
Estrellas
1.6k
Forks
239
Merge medio
1 d 9 h
PR fusionados (30 d)
2

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SlatherOrg/slather

Todos los issues de SlatherOrg/slather

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.