Forum member
Tim Long
31 posts
Posts by Tim Long
-
Unable to run tests on clean install of VS 2026 Insiders
[quote=Remco;18595]There is a list of packages that NCrunch requires which it should automatically restore itself. I think your Nuget package cache is corrupt. Try renaming the package root (with the IDE closed) to see if re-downloading the packages resolves the issue.[/quote] It's not that. …
30 Jan 2026 12:15 UTC
-
Unable to run tests on clean install of VS 2026 Insiders
[quote=Remco;18591]Can you check the contents of your Nuget package cache to see if the package is installed in the expected location?[/quote] Yes, it was there. I deleted it and re-restored anyway, no joy. However, I noticed that the problem has now moved to a different package: 'System.Runt…
29 Jan 2026 10:38 UTC
-
Unable to run tests on clean install of VS 2026 Insiders
[quote=Remco;18589]Hi, thanks for posting. NCrunch has a number of package dependencies that are needed by its test adapters. To avoid installer bloat, these aren't packaged with the product. Instead, when the engine is enabled, NCrunch does a scan of your Nuget packages cache and then it build…
29 Jan 2026 10:04 UTC
-
Unable to run tests on clean install of VS 2026 Insiders
Hi. I recently got a new computer and have done a clean install of all my tools, including VS2026 Insiders and NCrunch. Some of my projects build and run tests OK, but I have one problematic one that fails all tests (it was working on the old computer). I guess it's probably a missing dependency, bu…
29 Jan 2026 09:40 UTC
-
Rendering each test case for an XUnit Theory
I'm trying to use an XUnit theory, with data supplied by a DataClass, to expand a large number of scenarious (a few hundred). However, I only see one entry in the test output. I was expecting to see each "data row" listed as a test. This appears to work in Visual Studio's test runner, but not in NCr…
18 Nov 2025 15:36 UTC
-
Load failure project.assets.json doesn't have a target for 'netstandard2.0' on a .NET 4.8 project
Yes, I'm running the preview and in fact it updated this morning after I've been on leave for a week. I have installed the build attached to the other post you referenced, and it does seem to have fixed the issue. Once of my projects is now failing to build because of: NCrunch: This project was b…
28 Apr 2025 10:17 UTC
-
Load failure project.assets.json doesn't have a target for 'netstandard2.0' on a .NET 4.8 project
I've started getting an issue where none of my projects will load (even though they are all fine in Visual Studio 2022) because: [quote] System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an…
28 Apr 2025 08:35 UTC
-
RDI not playing well when debugging MSpec specifications
If its as simple as turning on "just my code" then as far as I'm concerned that's a fix. It never occurred to me that might be turned off (I checked, and it was).
12 Mar 2024 08:04 UTC
-
RDI not playing well when debugging MSpec specifications
I have an issue where I am trying to debug some code. I go to the code and right-click one of the coverage dots (its red) and select "Break into this covering test at this line". (Aside: I think NCrunch is getting this wrong for MSpec tests - this is not a covering test, it is covered code, but that…
11 Mar 2024 11:02 UTC
-
Why does the RDI trace sometimes stop in the middle of a method?
[quote=Remco;17110] Would you mind boosting the data limit to see if you get a difference in behaviour? This method doesn't seem very big ... unless the limit is very low, I wouldn't expect to hit the data limit yet.[/quote] My pleasure. I increased the method limit by a factor of 10 from 10000…
10 Mar 2024 03:38 UTC
-
Why does the RDI trace sometimes stop in the middle of a method?
RDI is a very exciting new feature! Well done Remco. I have one question though. The trace sometimes seems to just stop in the middle of a method. Consider this method that was exercised in 4 tests. In the first 3 instances, the trace continues right to the exit point of the method: However on…
09 Mar 2024 21:08 UTC
-
GitVersion.MSBuild error
I got my build to work by including the .git folder. It's not ideal but its good enough :)
13 Jan 2021 00:47 UTC
-
GitVersion.MSBuild error
[quote=Remco;15242] You might be able to get this working by adding obj\gitversion.json to NCrunch's [url=https://www.ncrunch.net/documentation/reference_project-configuration_additional-files-to-include]additional files to include[/url] setting. [/quote] Let me clarify. I believe that GitVersi…
13 Jan 2021 00:14 UTC
-
GitVersion.MSBuild error
I have recently migrated from GitVersion.Task to GitVersion.MSBuild (the former being deprecated) and now I'm getting this build error: [quote] C:\Users\Tim\.nuget\packages\gitversion.msbuild\5.6.3\tools\GitVersion.MsBuild.targets: The command "C:\Users\Tim\.nuget\packages\gitversion.msbuild\5.6…
12 Jan 2021 23:48 UTC
-
Tests not marked as 'impacted' when static fields change
[quote=Remco;14734]Could you perhaps use a property instead?[/quote] I could certainly use a property, but it would still have to be static because of the way MSpec works. So will it make any difference? I'll give it a go tomorrow as I'm just off to bed. --Tim
25 May 2020 03:17 UTC
-
Tests not marked as 'impacted' when static fields change
I guessed you would say something like that, so no surprises. It's just a bit annoying with MSpec in particular because all fields are required to be static, so it is a much bigger problem than for other frameworks. Could you not implement something specific to MSpec? Perhaps a Roslyn hook that w…
24 May 2020 21:22 UTC
-
Tests not marked as 'impacted' when static fields change
I use MSpec as my test framework. Consider the following example: [quote] [Subject(typeof(SimulatorStateMachine), "electroluminescent panel")] internal class when_the_brightness_is_set_nonzero : with_simulator_context { Establish context = () => Context = ContextBuilde…
24 May 2020 11:52 UTC
-
NCrunch and GitVersion
I'm using GitVersion to automatically version my code. Specifically, I use the GitVersionTask NuGet package that installs an MSBuild task to extract the version information during every build. One of the things this task does is to "inject" a static class called GitVersionInformation. I access this …
21 Jun 2019 18:48 UTC
-
Even the simplest .NET Core project fails to build under NCrunch
All right, it looks like I'm not understanding how test runners work in .NET Core. I tried re-creating my project as a "Unit test application" and now it is building and running the tests in NCrunch. I thought that NCrunch would be able to run tests from a class library, like it does for .NET Framew…
26 Jul 2017 15:57 UTC
-
Even the simplest .NET Core project fails to build under NCrunch
Hi there. Noting that .NET Core support has arrived, I am filled with enthusiasm because I now have a way to test some of my UWP code. What I intend to do is put all my ViewModel code into a .NET Standard library, then include that into a .NET Core test project (class library). VS 2017 creates a cla…
26 Jul 2017 15:41 UTC