Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scottasoutherland opened this issue Sep 20, 2024 · 3 comments
Open

Comments

@scottasoutherland
Copy link

scottasoutherland commented Sep 20, 2024

I am still experiencing the empty coverage report issue described here: #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
Copy link
Author

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

@scottasoutherland
Copy link
Author

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.

@ykhandelwal913
Copy link

hi @scottasoutherland i tried with moving everything to .slather.yml but it is still giving me empty coverage file. I tried with 2.8.0+ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants