Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
Inclusively/Exclusively uses attribute
Hi, thanks for posting. When you specify InclusivelyUses, a test will be allowed to run only if no currently running test has declared ExclusivelyUses for the same resource. So you could have a dozen tests making inclusive use of the same resource, and they could all run at the same time witho…
10 Feb 2022 11:49 UTC
-
Performance is not ok
[quote=WesleyCanneyt;15984] If we shut down visual studio then we have around 8 gb ram used. Only visual studio we have 10-12 gb ram used. [/quote] With the info you've shared, I think that having only 8GB available for VS, NCrunch, and all your tests is probably not sufficient for the size of…
09 Feb 2022 22:52 UTC
-
Performance is not ok
Hi, thanks for posting. Looking at the details you've posted, my bet here would be that the issue is memory related. When the system runs out of available memory, the IDE will start to perform very poorly. In this case, it's probably giving NCrunch the blame for the typing lag because it's the …
09 Feb 2022 12:09 UTC
-
Ncrunch windows washed out/blurry on 4K monitor
Hi Thomas, We've had a range of issues with the winforms rendering on setups that have screens with different DPI scaling settings. VS also has some custom things that it does which seem to complicate things in this area. We do our best, but sadly there are no easy fixes here.
03 Feb 2022 11:30 UTC
-
Finding Memory Usage Per-Test
Hi, thanks for posting. We don't have anything built-in that can do this. Given that the tests themselves are your own code, perhaps it might be possible for you to engineer something into the tests themselves? For example, you could create a SetUpFixture that starts a background thread which m…
02 Feb 2022 12:10 UTC
-
Support for C# source generators?
Would you be interested in trying the build below? This build includes a change that should force the nCrunch.TestRuntime.DotNetCore.dll assembly into the analyzer environment. In theory it will allow the analyzer to run even when the code generator is instrumented. [url=https://s3.amazonaws.co…
02 Feb 2022 10:43 UTC
-
Support for C# source generators?
Can you confirm whether turning off NCrunch's 'Instrument output assembly' setting for the code generation project resolves the issue?
01 Feb 2022 03:17 UTC
-
Ncrunch windows washed out/blurry on 4K monitor
Hi Daniel, thanks for sharing this. This would likely be because the NCrunch UI is built on the old winforms system, which unfortunately never scales as nicely under high DPI as the newer WPF stuff. I would recommend having a look at the NCrunch UI font settings, as you might find a font or po…
31 Jan 2022 23:09 UTC
-
Use Wildcard in the TestName element in NCRUNCHPROJECT file
Hi, thanks for posting. Unfortunately, this doesn't work, as the IgnoredTests selectors are designed to be simplified names that can be sensibly manipulated by the NCrunch UI. Having wildcards in the expressions creates confusion for the UI as it then becomes much more difficulty to sensibly swi…
31 Jan 2022 23:04 UTC
-
Support for C# source generators?
If you add the source line: System.Diagnostics.Debugger.Launch(); ... As the first line of code in your source generator, does the debugger prompt appear when you run NCrunch over the solution? This should hopefully be a reliable way to determine whether the source generator is actually being…
30 Jan 2022 13:03 UTC
-
Support for C# source generators?
Thanks for sending through these logs. Can you try setting the 'UseSharedCompilation' build property to 'false' for the 'Custom build properties' setting in your NCrunch shared solution settings and let me know if this makes any difference for you?
30 Jan 2022 00:09 UTC
-
Support for C# source generators?
Thanks for sending this through. According to the log, things appear to be functioning normally - except the output from the source generator doesn't seem to exist. We need a more detailed capture of the build system on your side from when the source generator is supposed to be executing. Can…
29 Jan 2022 03:32 UTC
-
Support for C# source generators?
[quote=mgrundner;15955] Should i send a bug report log?[/quote] Yes please!
28 Jan 2022 22:58 UTC
-
Support for C# source generators?
[quote=mgrundner;15952] I did a quick check with 4.11.0.2 in VisualStudio 2022 (17.0.5) and it's the same issue[/quote] Testing this on VS2022.17.0.5 it seems to work on my end with your sample solution. Can you confirm the error you're seeing? Do you have any extra configuration?
28 Jan 2022 08:36 UTC
-
Possible error in GetToolPath
Hi, thanks for sharing this. I'm not sure how this worked under Net5, as technically I would have thought it shouldn't. Running a test project set to target x86 defaults in the x86 version of Dotnet being used, which isn't installed on your machine. It might be possible to work around this by…
27 Jan 2022 22:38 UTC
-
Support for C# source generators?
[quote=mgrundner;15949]Seams the problem is back with https://github.com/nicodeslandes/SourceGenApp and 4.11.0.2 in VisualStudio 2022 Preview :([/quote] We've had some odd reports with the new VS2022 preview build lately. I think they still have a bit of stuff in the oven with it. I recommend h…
27 Jan 2022 22:23 UTC
-
VS2022 (17.1.0) Preview 2.0 appears to break Ncrunch
[quote=NeilMacMullen;15937] However, I also have a much simpler solution with only two projects - that appears to load fine and Ncrunch works correctly so as you suggest this may be a downstream problem caused by VS changes to certain project types. [/quote] My suspicion here is that there is w…
11 Jan 2022 11:28 UTC
-
VS2022 (17.1.0) Preview 2.0 appears to break Ncrunch
Thanks for sending this through. The log doesn't show any obvious erroneous behaviour, but there is a shortage of detected projects. Do you have a solution open in the IDE? Note that NCrunch doesn't work very well if it's just a project file open (make sure you have a .sln). I wonder if the …
11 Jan 2022 11:13 UTC
-
Build error for net6 blazor webassembly project
[quote=wendellm;15933]with the same setup, updated to preview 2 .net 6, I am running into the same problem. Blazor wasm refusing to build. I want to try this above solution but I have no clue what this means? => NCrunch 'Custom build properties' setting to set the 'IsWasmProject' property to 'false…
11 Jan 2022 11:10 UTC
-
VS2022 (17.1.0) Preview 2.0 appears to break Ncrunch
Hi, thanks for sharing this issue. NCrunch actually has no integration at all with VSTest or MSTest (we added all support for this using our own emulator). This means that the errors you're seeing here related to VSTest and in the Test Output Window (which we don't output to) most likely have no…
11 Jan 2022 10:43 UTC