-
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
Ignore specific lines, for example require
#250
Comments
Hi, Using an annotation filter, you can exclude lambdas, but this will not work in the case of inline functions. |
Thanks @shanshin ! So maybe this could be a feature request. Not sure if a comment or something in the line above the partial line could be easily be consumed by the plugin having the source. And thanks you guys for all the hard work! With 0.6.1, I was able to finally get it working and upload the reports to codecov! |
Ignoring the line by comment (or compile-only annotations) is a planned feature, but at this stage its implementation is difficult. |
Nevertheless, the overall recommendation is to test every meaningful code path and exclude only really obscure lines (the classic example of which is Java's |
Yeah, thats the case here. That |
This task will be taken into account when migrating to Kotlin Gradle Plugin. In the future, it will be moved to the Kotlin task tracker, or closed if it loses relevance. |
Require method calls that are a safeguard for implementations never will be able to be fully executed if the implementation works fine.
So I would like to mark somehow specific lines to be ignored for the coverage. Is it possible right now?
The text was updated successfully, but these errors were encountered: