Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Visual studio preview 16.9.4 breakage

    Hi, thanks for the heads up. Could I just check if including the file in the 'Additional files to include' suppresses the issue?

  2. Automatically run impacted tests without automatically running all tests

    [quote=distilled;15311] Yep, I can confirm that that's what I'm seeing. I guess in my experience the file hash very rarely matches what NCrunch has cached, and most of the time when I launch VS I need to quickly disable NCrunch or tell it to ignore everything so that it doesn't try to start running…

  3. Automatically run impacted tests without automatically running all tests

    Hi, thanks for posting. If you're using the 'Run impacted tests automatically, others manually' mode, NCrunch should only run tests when it detects that they are impacted by IL-level changes in your code. This includes after the engine is started. NCrunch does this by storing the hash state o…

  4. Ignore test projects based on target frameworks

    Hi, thanks for posting. The easiest way I can think of doing this is to introduce assembly-level category attributes in your test project which are controlled by framework-specific compile switches. For example: #if NETCOREAPP2_2 [assembly: NCrunch.Framework.Category("NetCore2_2")] #endif…

  5. Permissions.SecurityPermission

    Hi Daniel, Thanks for sharing this issue. I'm not aware of anything in NCrunch that could directly cause this problem. The test environments we create default to full trust, and this looks like the kind of exception that could be thrown from partially trusted or constrained code. Does this…

  6. NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error...

    Could you try the build below to see if this solves the problem for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.7.0.4.msi]NCrunch_Console_4.7.0.4.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.7.0.4.zip]NCrunch_Console_4.7.0.4.zip[/…

  7. NCrunch.Framework license?

    Hi, thanks for posting. The NCrunch.Framework binary should still be Apache-2.0. Nuget changed the system between those versions and it looks like the EULA got cut out somehow. I'll make a task to investigate. You can assure your legal team that from an EULA standpoint there has been no change…

  8. NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error...

    This may be an instrumentation problem. If you turn on the 'Instrument Output Assembly' setting and set the 'Instrumentation Strategy' setting to 'Legacy', does this also resolve the problem consistently? I get suspicious when I hear about something that works when only text based changes are ma…

  9. NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error...

    Hi, thanks for sharing this issue. Can you try the following and let me know if you see any difference here? - Try placing the SuppressMessage attribute declaration inside an '#if !NCRUNCH' block. Does this allow NCrunch and the code cleanup to both work? - Can you try turning off the 'Instrum…

  10. .NET 5 unit test projects not building

    [quote=Argamon;15288] So it has definitly something to do with the environment. Still no real clue why this happens every few days and only with .NET Core projects, never with Framework projects[/quote] Since a recent VS update, we've noticed that the IDE doesn't always seem to behave correctl…

  11. .NET 5 unit test projects not building

    Hi, thanks for sharing this problem. It looks like NCrunch is unable to resolve the path of your ProgramFiles directory. Can you check if you have the ProgramFiles, ProgramFiles(x86) and ProgramW6432 environment variables set on your machine? These should point to the x86, x86 and x64 program…

  12. Locate test in Ncrunch Tests window

    Hi Simon, Try the 'Pin covering test to Tests Window' option. You can do this from a shortcut key or by right-clicking the coverage marker. The selection of the current test needed to be rolled into this feature because without it there was no guarantee the test could actually be shown in the…

  13. Migrating to .NET 5 - An item with the same key has already been added

    [quote=jpgrassi;15281] Edit: Sorry for the nagging, but you have an idea if this fix is making to the next release? And if so, do you have maybe an estimate? Or if this build you sent is considered "prod ready" we would also be fine using it while the official release comes.[/quote] Yes, it will…

  14. Migrating to .NET 5 - An item with the same key has already been added

    I've taken a deep look through the bug report you submitted. The problem does indeed seem to be triggered by the multi-targeting. Could you try the build below to see if it resolves the issue? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.7.0.3.msi]NCrunch_Console_4.7.…

  15. HotChocolate repo - Stictching solution - NCrunch keeps busy

    Hi, thanks for sharing this issue. This solution is failing to load under NCrunch because it dynamically specifies the TargetFrameworks property for the projects involved using Directory.build.props files and using custom build properties. We currently do not support working with such a setup un…

  16. NCrunch Console Tool Requiring Unneeded Packages

    [quote=pbassett;15269] If they're not there, NCrunch will download them, and then fail because it says it couldn't download them.[/quote] Do you have the option of pre-copying the packages and leaving them there? At the moment, the only reason I can think of why they wouldn't be there would b…

  17. Migrating to .NET 5 - An item with the same key has already been added

    Hi, thanks for sharing this problem. It looks like you have two projects in your solution with the same compiled assembly name (or very similar, with '_' and '.' being interchangeable). This causes clashing inside NCrunch's handling for the AspNetMvcTestHost system. I would expect such a setup …

  18. Build fails due to a Typescript Error

    Hi, thanks for sharing this issue. Broadly, you have two options here. You can either disable typescript compilation by [url=https://www.ncrunch.net/documentation/troubleshooting_ncrunch-specific-overrides]adding a condition to your project file[/url], or you can make sure it has the dependencie…

  19. NCrunch Console Tool Requiring Unneeded Packages

    [quote=pbassett;15263] The packages are downloaded to C:\Users\sa-buildsvr\.nuget\packages[/quote] Can you confirm whether the correct versions of the required packages are stored in this directory? If not, does copying the packages in there (i.e. from another machine) resolve the issue?

  20. NCrunch Console Tool Requiring Unneeded Packages

    [quote=pbassett;15259] NCrunch is doing an msbuild restore (not a dotnet restore) on project generated by NCrunch. That project is found in C:\Users\[username]\AppData\Local\NCrunch\[TempDir]\PackageRestore\restorePackages.csproj [/quote] Correct. Sorry, I remembered that wrong. [quote=pba…