Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Cannot find module '@angular/core'.

    My first guess would be to try changing this line: <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.…

  2. NCrunch console 3.6 ignores /E parameter?

    [quote=GreenMoose;10174] * Using /e "Manual" without existing .v3.ncrunchsolution and without /c, causes NCrunch to execute all tests. [/quote] If there is no "Manual" engine mode in your global config file at C:\Users\USER\AppData\Roaming\NCrunch\globalconfig.crunch.v3.xml, then the current de…

  3. Cannot find module '@angular/core'.

    Hi, thanks for posting. It looks to me like your project has a build step that is compiling your typescript files. My first guess would be that these files depend upon libraries that aren't included in the project itself, so the build system can't find them when NCrunch tries to build. See he…

  4. NCrunch console 3.6 ignores /E parameter?

    Sorry, I misunderstood. To clarify this, the ncrunchsolution file cannot be injected via the /C command line option. This option will only work for a global configuration file. If you're looking to override specific config settings that are specified in the normal .ncrunchsolution file, it may …

  5. TargetInvocationException

    Hi, thanks for sharing this problem. I've seen this happen before, intermittently in a test VM. My understanding at the moment is that it's actually caused by a race condition in the .NET framework itself, which tries to somehow load resources in parallel while the console process is still start…

  6. NCrunch does not output Assert.Ignore reason

    This looks to be a fault in NCrunch's handling of the inconclusive state. It simply isn't taking into account the message returned by NUnit. Thanks for reporting it. I've noted it down to be fixed.

  7. NCrunch console 3.6 ignores /E parameter?

    [quote=GreenMoose;10164]Regarding engine mode not being picked up, I found the issue I think. My ncrunch config file contained <EngineMode> <Name>Manual</Name> <Settings /> </EngineMode> (default when creating a new engine mode it seems?)[/quote] Did NCrunch itself do t…

  8. NCrunch console 3.6 ignores /E parameter?

    When told to /E to an engine mode that it can't find, NCrunch will just swallow the problem and use the default instead. The engine mode is switched using an event that originates within the console tool code (EngineModeSwitchedInUIEvent) on response to DteSolutionOpenedEvent. The /C option on t…

  9. Contradicting Success/Failure Indicator

    Hi, thanks for posting. There are two known ways that this can happen. Both are by design: 1. When using an expected exception attribute (syntax depends on framework), NCrunch can catch the expected exception and report this as an X, but the test is still a pass. 2. When debugging using NC…

  10. Issue Building .NET Core Project in VS2017 with 3.6

    Hi Mark, Thanks for sharing this issue. The exception you're seeing above is what happens when NCrunch tries to build a shared project. Right now support for shared projects is still a work in progress, so it isn't very tidy yet, though it does still work. Shared projects themselves only act…

  11. Null when hovering over a variable

    Hi, Thanks for sharing this problem. This is a known issue. It's been around for a very long time, and though it's well understood what causes it and even what can be done to fix it, at the moment the better option seems to be not to fix it. I'll try to explain why ... When NCrunch instru…

  12. Build issue with 4.5 test project referencing multi-target core project

    [quote=narshe;10141]This issue with doing that is it will only build net45 and not all the other types. This would work temporarily while developing, but isn't ideal. If I switch the project over to using the new core project types (I'm assuming that's what CPS projects are), would this solve the…

  13. CLI Suddenly Creates New Workspace at End of Tests

    Hi, thanks for sharing this problem. My first guess here would be that there has been a file system change in the solution being targeted by the console tool. Perhaps as a result of the execution run itself. This then triggers NCrunch's file synchroniser which in turn causes the engine to adapt…

  14. "Run impacted tests automatically, other manually" does not detect changes in MSpec tests.

    Hi, Sorry, this hasn't been addressed yet. Unfortunately the last few months have been utterly crazy (new VS, NCrunch v3, new MSTest, .NET Core, etc). It's in the backlog to be looked at in the near future.

  15. NCrunch Does Not Copy Files Marked "Copy Always"

    Hi, Can you share any more details about these files? Are they specified in your test project, or in a project referenced by your test project? Where do they exist relative to the test project file? If the files are declared in a project referenced by your test project, there is a limitation…

  16. Build issue with 4.5 test project referencing multi-target core project

    Hi, thanks for sharing this problem. This is caused by NCrunch failing to correlate the target framework of the test project with the main project. NCrunch assumes that for the target frameworks to be correlated, both projects would have them specified (using CPS projects). In truth, I didn't k…

  17. NCrunch console ERROR (Internal): System.ArgumentNullException

    [quote=GreenMoose;10131] *Edit: Also I could not repro it locally (where I have vstudio2017 installed) so I guess it is related to settings in global.json along with the specific SDKs installed on built agent.[/quote] NCrunch itself no longer cares about global.json (earlier DNX integrated build…

  18. Exluding files from Autobuild does not apply immediately

    I've just had a thought. The config setting you've set will prevent NCrunch from triggering builds when .ts or .html files are changed, but they won't prevent NCrunch from triggering builds when the IDE touches other files on the file system as a result of these files being changed. For example,…

  19. Exluding files from Autobuild does not apply immediately

    I've just done some quick testing on this, but couldn't get it to misbehave. My first thought was that perhaps the engine might be queuing tests without queuing build tasks, though such behaviour also doesn't seem to happen for any of my tests. Let me know if you manage to pin this down.

  20. NCrunch console ERROR (Internal): System.ArgumentNullException

    [quote=GreenMoose;10127] I later introduced some vs2017-only projects, and for some reason this seems to cause NCrunch to fail. After cleaning up all vs2015 leftovers NCrunch on TeamCity is happy again :).[/quote] Interesting ... How did this cause NCrunch to fail? Did it just fail to recognise…