tests: upgraded tarpaulin and added derive macro coverage #1466
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgraded tarpaulin to new the new maintainer, added coverage for derive macro, and added an example.
Motivation
Resolves #1144
Solution
Here's the codecov for this PR. https://app.codecov.io/gh/tyrone-wu/kube/tree/tests%2Fupdate-code-coverage
syn
dependency usedv1
in both runtime-macros and runtime-macros-derive, and it caused some error when running them against this projects derive macros. I'm not entirely sure if they're being maintained anymore since last update a while ago, andsyn v1
was a pretty ancient version. I ended up forking and upgrading it tov2
on my own https://github.com/tyrone-wu/runtime-macros. (tbh, I'm not entirely sure what runtime-macros does internally, but I tried upgradedsyn
so that it's compatible with kube's derive macros, and it seems to be getting the coverage which is good I think? 😅)crd_derive_schema
example, anddefault
feature is now the default of running it (I think).I noticed the codecov step uses
v3
. Would you prefer also upgrading it to latestv4
? I'm not sure what things this adds or changes so it might not be necessary.