SlatherOrg / slather

Generate test coverage reports for Xcode projects & hook it into CI.
MIT License
1.56k stars 238 forks source link

Version 2.8.4 Still continues to Generate an Empty Coverage File #572

Open scottasoutherland opened 1 month ago

scottasoutherland commented 1 month ago

I am still experiencing the empty coverage report issue described here: https://github.com/SlatherOrg/slather/issues/561 , even after upgrading to 2.8.4.

Specifically we have a .slather.yml file which uses the keys: build_directory and ignore .

We then run slather with the following command. bundle exec slather coverage --input-format 'profdata' --scheme <our_scheme> --workspace <absolute_path_to_workspace> --source-files <glob_with_absolute_path> --binary-file <absoluted_path_to_binary_file> <absolute_path_to_xcodeproj> On version 2.8.0 , this works fine for us. On 2.8.1+ it outputs an empty report.json file. I've tried in 2.8.1, 2.8.2, and 2.8.4. Specifically the output of the report is always []

I've tried using both Xcode 15.4 and 16.0 if that matters.

scottasoutherland commented 1 month ago

I've also tried removing the ignore from the .slather.yml and it does not appear to make a difference.

scottasoutherland commented 1 month ago

It appears that moving almost all the parameters to the .slather.yml file and making the slather command only be slather coverage --json --input-format 'profdata' seems to fix it.