Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. TestCaseSources enumerated unnecessarily

    Hi, thanks for sharing this issue. The code you have here is being executed inside the TestCaseSource code block, which means that NUnit will invoke it every time it needs to build an in-memory model of the test suite. NUnit will build the test suite every time it is initialised for a particular…

  2. NCrunch starts building tests before solution is completely loaded

    Hi Thomas, This is by design, because of changes MS made to the solution handling in VS2017. Under VS2017 lightweight solution mode, it's normal that most projects won't be loaded when the solution is first opened. Instead, VS will load them on demand. Because VS also loads projects asynchro…

  3. System.Xml.ReaderWriter not found when running ASP.NET Core projects in NCrunch

    References of this sort are usually resolved implicitly by the Core CLR using the .deps file. My first thought is that perhaps this is trying to resolve the wrong version of this assembly for some reason. Are you able to build a sample project that can reproduce this issue and you can share with…

  4. Multiple markers when renaming class with ReSharper

    Hi, thanks for sharing this problem. Can you confirm whether you can reproduce this consistently using ReSharper rename? Does it ever work correctly when you do this?

  5. Impact detection does not detect added constructor required by Moq

    Hi, thanks for sharing this problem. This is definitely a hard one. The critical dependency here sits on the result of a reflection call inside an uninstrumented library, so without instrumenting Moq or hacking the CLR, I'm not sure yet of a way to handle such a complex case. I'll have a think …

  6. Adding tracesource configuration to ncrunch processes

    Hi, thanks for posting. Usually, it should be possible to add this to the config file for the test project (i.e. myproject.config). NCrunch specifically detects test project config files and will include them in the runtime environment by using them as the source of configuration for the test ap…

  7. New csproj format with TargetFrameworks & one target causes NCrunch to fail to build

    Hi, thanks for sharing this problem. Yes, unfortunately this gives a terrible error message. VS actually used to give the same message, but MS have fixed this now. There is a fix pending for this in the next version of NCrunch. Apologies if this has resulted in wasted time.

  8. Manual Installation improvement

    Isn't it simply possible to Ctrl+A, right click, properties, unblock all of them? Or does the directory structure complicate this?

  9. Manual Installation improvement

    Thanks Albert. I saw your post in the other thread about the bad experience here .. sorry about that. The powershell script is a good idea. I've had many support requests raised over the years about blocked at O/S level. Edit: I'd need to test whether the powershell script would need to be u…

  10. NCrunch 3.7 causes VS 2017 to crash if you edit a .NET Core csproj file

    Hi, Thanks for sharing this issue. I've managed to reproduce it in the way you've described, it's very consistent. I hope to have a fix available sometime soon.

  11. Engine mode overriding custom environment variable, override 1 and not all?

    At the moment, it's a full replacement of all existing values ... so there is no inheritance inside the value itself. I agree inheritance would be more useful. It is the way it is simply because of time/complexity constraints.

  12. NCrunch3.7 .Net Core error

    Hi, thanks for touching in and for sharing the sample solution. The problem in your case is being caused by the way the target frameworks are specified in your project file. Try changing the following: <TargetFrameworks>netcoreapp1.1</TargetFrameworks> To: <TargetFramework>netcoreapp1.1…

  13. Local variables unavailable when debugging

    Hi, Sorry to leave this thread hanging, but this problem was actually resolved in a build quite some time ago. It's likely you've encountered something different. Are you able to share any examples of the code that seems to suppress variable data at debug time? If I can reconstruct the problem…

  14. NCrunch attributes on interface?

    [quote=GreenMoose;10359]Ok thanks. As an alternative approach, maybe it is possible to have something like NUnit's TestContext e.g. NCrunch.TestContext.CurrentTest.Attributes or similar? Then one could take actions depending on existence of them (in my case fail the test if the actual tests are n…

  15. NCrunch Issue with NuGet Package with Generic

    Thanks for the sample solution. It's very useful that you were able to submit all components relevant to the problem. I appreciate the effort it would have taken you to whittle this down. The problem appears to be caused by the obfuscation of the NuGet package. The obfuscator being used here a…

  16. NCrunch Issue with NuGet Package with Generic

    Looks like it is coming through now. Thanks for your help. I'll get back to you as soon as I have more information.

  17. Configuration/UseBuildConfiguration not supported by console tool?

    Thanks for sharing this. I've just checked the handling here, and it looks like I designed the configuration override system to deliberately fail for all project-level settings. I don't completely remember why it's been done this way. It seems like it would be useful to be able to override thes…

  18. NCrunch Issue with NuGet Package with Generic

    Thanks for coming back to this one! For some reason, the sample didn't make it through the contact link. Do you have any other way you can share it with me? Otherwise you could try emailing it to support at ncrunch dot net.

  19. NCrunch attributes on interface?

    Hi, thanks for sharing this. When NCrunch scans for attributes attached to a method, it searches only through base classes - not interfaces. Although it could be possible to adjust this, I have some reservations for doing so. The code that performs this scanning is performance critical and ad…

  20. NCrunch3.7 .Net Core error

    [quote=kolhapuri;10355]Thanks for your help. This seems to have resolved itself which is unfortunate since we are not able to pinpoint exactly what was causing it. I washaving issues using ncrunch inside vs2017 on the build machine. Tried all the different things suggested on the ncrunch site. Noth…