-
Notifications
You must be signed in to change notification settings - Fork 52
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
Kotlinx Serialization annotation line included in the coverage report #686
Comments
Hi, |
@shanshin ![]() ![]() |
Similiar issue with android's @parcelize |
Confirming I have this issue too with |
@shanshin , we have this problem too! This is very disturbing. When is it planned to be fixed? |
@shanshin we're facing this issue too and as we heavily use Thank you so much. |
@JKuliska-pcty, we are gradually switching to using the JaCoCo agent (#720), and as a result, our reports will be rewritten. At the same time, we will try to take into account the problems with synthetic, but not marked as synthetic methods. We try to fix the existing report for |
Thank you for your answer. It's a pity that the The only thing I managed was to write a test that makes the cc: @shanshin |
@JKuliska-pcty, I will study this issue next week to see if it is possible to exclude synthetic |
Describe the bug
Recently, I updated the Kover version in my KMM project from 0.8.1 to 0.8.3, and I noticed my data classes annotated with
@Serializable
were not fully covered. The annotation line looks yellow in the HTML report, stating it is partially covered.I've tried excluding
"*.*serializer*"
from coverage report (as mentioned in some previous issue reported 1 or 2 years ago), but it didn't help.Errors
N/A
Expected behavior
Data class should be fully covered, ignoring the
@Serializable
annotation line. I don't want to exclude the whole data class to solve this issue, just the annotation part. Am I doing something wrong or Kover needs to consider updating itself after Kotlin 2.0 update (I'm using v2.0.20)?Reproducer
N/A
Reports
![image](https://private-user-images.githubusercontent.com/85350316/367293451-0ab5eb1f-f096-41d5-a9bf-d8459b187849.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Njk0MTksIm5iZiI6MTczOTU2OTExOSwicGF0aCI6Ii84NTM1MDMxNi8zNjcyOTM0NTEtMGFiNWViMWYtZjA5Ni00MWQ1LWE5YmYtZDg0NTliMTg3ODQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDIxMzgzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1ZWQyMTBiYmVmMTYwNGU2YWVlN2IxN2Y4NTc0MjM1MzZkNjIwNjZkMWNkMjY5N2U5YjA3ZjdjNjE1MTdhMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kr7zZqQZ61uUHMSxs0oz8JwlOZUcywH43mi2isFU2tE)
This is my data class in the Kover report:
This is the coverage summary:
![image](https://private-user-images.githubusercontent.com/85350316/367293569-c8f29dc7-ec94-41dc-a20e-ae7754e74888.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Njk0MTksIm5iZiI6MTczOTU2OTExOSwicGF0aCI6Ii84NTM1MDMxNi8zNjcyOTM1NjktYzhmMjlkYzctZWM5NC00MWRjLWEyMGUtYWU3NzU0ZTc0ODg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDIxMzgzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxYTNiOTFiZjA1MGJiMDFlMWU0MTNmYjI3Zjc1NjQ4MzNmYjU5YTZjMjQ1OTgyYzQ0ZGJiODVlYWVkYzJkOTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OxQ65KlDn4HCEv6pGxVH-mP7dj1uXCNQknTJIg2aDBw)
Environment
The text was updated successfully, but these errors were encountered: