Forum member
IlyaC
7 posts
Posts by IlyaC
-
How to get 100% code coverage with a throw inside cath?
Thanks for the answer, I understand it might be challenging since it is unreachable code in reality, though it's of course expected to be unreachable by design. Interestingly enough if I add one more catch before a generic one that does this: [code=csharp] catch when ()... { ..... t…
21 Apr 2020 10:36 UTC
-
How to get 100% code coverage with a throw inside cath?
I have a code like this: [code=csharp]try { DoSomething(); } catch { LogSomething(); throw; }[/code] Now when Ncrunch calculates metrics for code coverage, the last line is always "not covered". I assume it is not called in a way, but it's frustrating to not get 100% coverage …
21 Apr 2020 10:09 UTC
-
How to remove .ncrunchproject files from .Net Core project
I understand, thanks for help anyway, the solution that can be applied is good enough
01 Mar 2019 12:15 UTC
-
How to remove .ncrunchproject files from .Net Core project
Maybe then there can be a configuration option on top level for that? Now it's possible to do per solution, what if we can do that for all solutions maybe to not make it default option? I think more and more people switching to .net core will not find it seamless and would need to do that again and …
01 Mar 2019 10:58 UTC
-
How to remove .ncrunchproject files from .Net Core project
This might work, I can try this later, Remco solution works for me now :) So ideally if it were by default then we would not need to do anything at all.
28 Feb 2019 14:14 UTC
-
How to remove .ncrunchproject files from .Net Core project
Thanks for the answer, I agree it's not smart to mess with .net core logic, but if it's possible to move files it's good enough. The solution worked just fine, though there is still solution level ncrunch files, but they are not a problem since they can just be gitignored and are not included in p…
28 Feb 2019 09:00 UTC
-
How to remove .ncrunchproject files from .Net Core project
I have added NCrunch to my .Net Core solution and now this file was added to all projects: ProjectName.v3.ncrunchproject I have added this to gitignore so it's not going to source control, but how can I remove it from Project? There is an option of excluding this file explicitly in each and e…
21 Feb 2019 08:14 UTC