Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
Empty Test .csproj fails to build
Hi, thanks for sharing this problem. This looks to be caused by an oversight in our parsing of the code analysis ruleset file. It looks like your ruleset has a dependency specified using an absolute path (i.e. 'C:\Dev\Vie\Shared\SolutionItems\') as opposed to a relative path. At the time this c…
27 May 2020 00:20 UTC
-
Project with Excel sheets not building in Ncrunch although it does in MSbuild
Hi, thanks for sharing this issue. My bet would be that you have an [url=https://www.ncrunch.net/documentation/troubleshooting_project-build-issues]implicit build dependency[/url] on something (probably the excel files) that NCrunch isn't copying to the workspace used to build your code. Could…
27 May 2020 00:10 UTC
-
Tests not marked as 'impacted' when static fields change
A static property would be very different in terms of coverage tracking and impact detection, because its value would be initialised and assigned when the property is called, instead of in the class static constructor. If you use a property, the coverage and impact detection hole is gone. Actually…
25 May 2020 04:07 UTC
-
Tests not marked as 'impacted' when static fields change
I'll take a closer look, but can't make promises. It would be tragic if the solution to this increased all instrumentation times by 20% or something. Could you perhaps use a property instead?
24 May 2020 23:40 UTC
-
Tests not marked as 'impacted' when static fields change
Hi Tim, Static initialisers are a difficult one to catch with NCrunch's code coverage tracking (and therefore impact detection). This is because of the manner in which the CLR executes them. Static fields are generally initialised the first time the containing class is accessed during runtime…
24 May 2020 13:04 UTC
-
License expiry notification
Thanks for your feedback on this. There's a bit of a grey area here in that the NCrunch license system technically isn't a subscription. Even after your license maintenance/support period has expired, you can still use the license in versions of NCrunch released during your license period. It…
22 May 2020 01:18 UTC
-
Packages often fail to uninstall unless NCrunch is disabled
[quote=Axima;14724]Is it possible for NCrunch to detect when a NuGet operation has started and de-activate itself, then re-activate when finished?[/quote] We want to. Detecting when it starts turns out to be quite simple. Detecting the end of it is much, much harder. We haven't found an ac…
21 May 2020 04:31 UTC
-
Packages often fail to uninstall unless NCrunch is disabled
Presently, you should always disable NCrunch before updating your Nuget packages. We've been trying for years to find an acceptable way to handle Nuget's package update system, but what seems at face value to be a rather simple system to handle is actually not simple at all. This has much to do …
20 May 2020 06:25 UTC
-
ExcludeFromCodeCoverage not working
Hi, thanks for sharing this issue. ExcludeFromCodeCoverage doesn't work here because at a physical level, the attribute doesn't get applied to the compiler-generated IL structure that comprises the async code block. It is possible for us to fix this. However, we can't find a way of doing so t…
18 May 2020 23:05 UTC
-
Server location
The server for this website is hosted on AWS on the US east coast.
15 May 2020 07:46 UTC
-
Do you offer teacher discounts?
Hi Ivaylo, Thanks for posting and for your interest in NCrunch. I am sorry but we don't have a licensing discount for teachers or educational providers. I can only offer you the [url=https://www.ncrunch.net/buy]list price[/url].
14 May 2020 23:29 UTC
-
Building asp.net core assembly taking 3 minutes in Ncrunch
Try adding a condition to the target so that it doesn't run under NCrunch. For example: <Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish" Condition="'$(NCrunch)' != '1'">
10 May 2020 07:41 UTC
-
Building asp.net core assembly taking 3 minutes in Ncrunch
Hi, thanks for sharing this issue. This specific problem won't be related to the AspNetCore.TestHost package ... this is something else. My guess would be that you have a build step taking an extraordinary long time to work. Do you have your ASP.NET project set to compile anything other than …
09 May 2020 23:32 UTC
-
Test coverage dots show wrong tests
Are you able to share with me some sample code in which VSTest will execute the Task but NCrunch doesn't? I've tried building a test case to examine this behaviour. The following code of mine just causes VSTest to hang and the test run never completes. I must be missing something here. [code=c…
08 May 2020 00:38 UTC
-
Test coverage dots show wrong tests
[quote=MatthewSteeples;14706]Thanks for getting back to us. That's probably not going to be a small change for us (our coding guidelines recommend returning the task if it's safe to do so) so we'll probably hold off until you've had a look to see if/when you might be scheduling a fix[/quote] Than…
07 May 2020 23:40 UTC
-
Test coverage dots show wrong tests
I think you may have found a hole in our MSTest support. Probably, VSTest infers async behaviour based on the test method returning a Task type. Right now, unless the method is explicitly declared as async, we treat it as a synchronous method. Because your method doesn't return any exception (i.e…
07 May 2020 13:14 UTC
-
Is there a way to stagger the starting of parallel executed tests?
Hi, thanks for posting. At the moment, we don't have any facility in NCrunch that can specifically do this. The best thing I can suggest would be to apply some concurrency constraints to the heavier tests to limit how much the engine will run them in parallel. An option would be to create sev…
07 May 2020 00:32 UTC
-
Would be nice to support .net5
Hi, thanks for flagging this up. It's generally our policy to hold off on supporting new work from MS until it's at least at the late RC stage. We'll keep an eye on it :)
05 May 2020 00:03 UTC
-
not working with a nearly emtpy .net core 3 worker service
Hi, thanks for sharing this issue. Presently we've performed no testing of NCrunch using this project template. It looks like a new one. When I try the latest version of NCrunch over a project built using the VS .NET Core 3.1 Worker Service Project template, everything seems to build OK. I…
05 May 2020 00:00 UTC
-
Hide Warnings - save in v3.ncrunchsolution
Adding the hidden component warnings to the NCrunch solution configuration file may yield unintended results. Config settings are usually designed to inherit, but this one isn't. It might work, but then it may get cleared out by other hidden warnings if you add them at project level. Basically …
04 May 2020 11:35 UTC