Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Update tarpaulin attributes #2200

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

xd009642
Copy link

PR summary

So in 0.13.4 (yanked) tarpaulin actually started passing --cfg=tarpaulin so users could do #[cfg_attr(tarpaulin, ignore)] to ignore certain tests in coverage and also conditionally include/exclude code in coverage. This had the unintended result of breaking the recommended skip attr.

Because of that 0.13.4 was yanked and later on a 0.14.0 version released which still did --cfg=tarpaulin but also --cfg=tarpaulin_include so that code could now be skipped but still included if you did #[cfg(not(tarpaulin_include))]. There's also an unstable #[tarpaulin::skip] tool attribute for those using nightly.

This PR changes time to use the new attributes as a user of time and tarpaulin found this broke their coverage CI.

Link to relevant tarpaulin issue: xd009642/tarpaulin#487

testing/benchmarking notes

I struggled to get holochain building and running coverage on it. Still working on that but it shouldn't functionally impact any code just driving the tarpaulin source analysis and exclusion functionality.

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

Successfully merging this pull request may close these issues.

None yet

1 participant