Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
[quote=ghelyar;10491][quote=Remco;10490]Since you have the 'Copy referenced assemblies to workspace' setting turned on, it shouldn't make any difference in your case ..[/quote] I have only turned it on because of the new behaviour/warning introduced in ncrunch 3.8. I did what it told me to do, and …
31 May 2017 13:49 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Ok, it looks like there is a problem with the TestHost support in that it switches itself on for .NET Framework when it probably isn't needed. This will hurt NCrunch's build optimisation. Since you have the 'Copy referenced assemblies to workspace' setting turned on, it shouldn't make any differen…
31 May 2017 12:56 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Thanks Alastair for your help in diagnosing this issue. When .NET Core generates these .deps files, it uses the name of the output assembly (dll) for each project, where it looks like NCrunch is using the project name (oops). Because your solution has projects with a different output assembly name…
31 May 2017 01:51 UTC
-
.NET Core 2.0 support
Hi, The last I heard, .NET Core v2 was on a timetable for a September release. I'm not sure if things have changed since then. Integrating with code still under development isn't really feasible, because the code changes faster than it can be tied into. Sorry, I'll need to make an informed a…
30 May 2017 22:45 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
The 'libraries' and 'targets' declarations for the projects in your referencing structure (most specifically, WebAPI but also the other projects) are the key to making this work. You'll likely find that if you manually add these into the .deps files in your NCrunch-generated workspace then re-run y…
29 May 2017 22:45 UTC
-
Can't run tests with VS 2017 / XBehave 2.2.0-beta0003-build685 / XUnit 2.2
Thanks Ant. I think it's best I just solve this problem properly by introducing proper support for xunit v2.2. This task has been pushed out a bit because it's quite complex. The original xunit integration wasn't designed properly and needs to change to work simultaneously with different versio…
29 May 2017 05:19 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Ok, so that confirms that the problem you're experiencing in your real world solution isn't the same as the one we just found in the test project. Is there any chance you can reproduce the real world problem in code you can share with me?
29 May 2017 01:32 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Thanks! It looks like this solution has no project reference between the test project and the web project, so NCrunch just couldn't find the dependency to merge the deps files. Interestingly, running the test outside of NCrunch also produced a failure :) Adding the project reference fixed eve…
29 May 2017 00:11 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Thanks! It looks like the deps file hasn't included the project declaration for the web project, which was the critical thing that allowed this to work. Does your web project have a .deps file? I might need to get from you the sample project you're working on. It looks to me like there might…
27 May 2017 23:38 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Ok, on the sample solution you shared with me, could you try the following? 1. Open the solution, run NCrunch over it so you see the failure 2. Right click on the failed test in the Tests Window, go to Advanced->Browse to workspace 3. Find the bin directory that contains the files for the test …
26 May 2017 22:49 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
Does NCrunch give you any warnings about the Microsoft.AspNet.TestHost package in the Tests Window?
26 May 2017 12:09 UTC
-
Tests utilising Microsoft.AspNet.TestHost fail in NCrunch
A fix for this is [url=https://www.ncrunch.net/download]now available with NCrunch v3.8[/url].
26 May 2017 06:43 UTC
-
Can't run tests with VS 2017 / XBehave 2.2.0-beta0003-build685 / XUnit 2.2
Thanks Ant. Here are the errors from the report: An exception thrown while processing the module 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2017\Modules\XUnit2\nCrunch.Module.XUnit2.crunchmodule': System.IO.Fi…
25 May 2017 23:03 UTC
-
TargetInvocationException
Thanks for letting me know how you solved this! Can you confirm which config file you needed to replace?
25 May 2017 22:14 UTC
-
Can't run tests with VS 2017 / XBehave 2.2.0-beta0003-build685 / XUnit 2.2
Hi, thanks for getting back to me on the forum. My hope is that this isn't a version specific integration issue. Would you be able to submit a bug report after you've had the test discovery fail? There may be something in the report that can help inform us.
25 May 2017 09:00 UTC
-
Detecting Impacted tests
Hi, thanks for posting. If you choose the 'Run impacted tests only, others manually' engine mode from the NCrunch->Select Engine Mode menu option, NCrunch will do exactly this :) You can also customise the engine modes if you have more specific needs, including the above one.
24 May 2017 23:10 UTC
-
Multiple markers when renaming class with ReSharper
@b33rdy: It would be really great to know if you see anything in Alastair's setup that is similar in yours. In this way, maybe I can rule out needing to test integration with some products.
24 May 2017 06:30 UTC
-
nunit TestCase not working with ExpectedResult
Thanks for confirming. This is the same one I also tested with :( Is there any chance you can put together a sample solution that can reproduce this issue? You can submit it through the [url=https://www.ncrunch.net/support/contact]contact form[/url].
23 May 2017 12:27 UTC
-
nunit TestCase not working with ExpectedResult
Hi Henrry, I can't seem to recreate this problem when using the latest version of NUnit. Which version of NUnit are you using?
23 May 2017 11:28 UTC
-
NCrunch 3.7 causes VS 2017 to crash if you edit a .NET Core csproj file
Ok, here is a build with the fix! This build introduces a change to the grid protocol, so if you're running any grid nodes, you'll need to update them. [url=http://downloads.ncrunch.net/NCrunch_Console_3.8.0.2.msi]http://downloads.ncrunch.net/NCrunch_Console_3.8.0.2.msi[/url] [url=http://down…
22 May 2017 06:13 UTC