Skip to content
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

Test run successfully. Code coverage report show that code was not covered. #27

Open
lcc101361 opened this issue Oct 14, 2016 · 2 comments

Comments

@lcc101361
Copy link

Hello genius,
I'm currently using Smocks to isolate my c# unit test and mock up some static methods when run test.
this is a great tool. No open source lib could mock C# static method and static class before.
I could run my unit test successfully. but when I use open cover to generate report. It show me my unit test not covered that code.

Can you please give some advise or confirm it's should just like that?

Thanks in advance.

@vanderkleij
Copy link
Owner

Hello! Thanks for the kind words and reporting an issue. This is probably related to #1.

Due to all the hackish stuff going on under the hood of Smocks, Visual Studio is having a hard time tracking what code is currently executing. As a result, breakpoints and code coverage are not working properly. I've looked into this in the past, and haven't been able to pinpoint the problem. Sadly, I therefore don't expect this to be fixed anytime soon.

If anyone reading this has any thoughts about what's causing this issue and #1, feel free to jump in!

@lcc101361
Copy link
Author

Hi vanderkleij,

Reviewed your last post. Yes Looks this question is a duplicate one. I got it. Thanks for your response.

Best regards

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

No branches or pull requests

2 participants