PostSharp ReaderWriterSynchronized aspect causes unit test code coverage drop.

michal.nowak's Avatar

michal.nowak

13 Dec, 2016 09:59 PM

Hello, I have decorated my class with ReaderWriterSynchronized attribute and suddenly my code coverage drops because PostSharp adds a bunch of methods I have no way to cover. Please see attached image. Is there any way to prevent this drop in code coverage?

Thank you,
Michal Nowak

  1. Support Staff 1 Posted by PostSharp Techn... on 15 Dec, 2016 11:12 AM

    PostSharp Technologies's Avatar

    Hello,

    This seems like a bug either in PostSharp or dotCover. Test coverage in Visual Studio does not complain. We need to do more investigation.

    We're closing the ticket for now as the bug has been internally filed as issue #14384. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    Best regards,
    -tony

  2. PostSharp Technologies closed this discussion on 15 Dec, 2016 11:12 AM.

  3. PostSharp Technologies re-opened this discussion on 10 Feb, 2017 08:47 AM

  4. Support Staff 2 Posted by PostSharp Techn... on 10 Feb, 2017 08:47 AM

    PostSharp Technologies's Avatar

    Hello,

    we released a bug fix for this issue in PostSharp 5.0.17.

    I'm going to close this ticket now, but feel free to reopen it if you need a further assistance.

    Best regards
    -jakub

  5. PostSharp Technologies closed this discussion on 10 Feb, 2017 08:48 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac