Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
v2.25, tests fail, indicate file not present
Thanks for sharing the sample project. Using this, I've had a go at trying to build a use case to reproduce this issue. Unfortunately, it seems that no matter what I try, the file always seems to end up in the right place (assets\filename). There must be something I'm missing here. Is there an…
10 Aug 2016 22:34 UTC
-
Problems with testing static service
Hi, thanks for posting. If I understand this problem correctly, you wish to isolate each individual test within its own process, as the execution of a test will 'fix' this service into a state where it cannot be reinitialised inside the same test process and cannot be changed. Applying the [ur…
10 Aug 2016 11:51 UTC
-
v2.25, tests fail, indicate file not present
Hi, thanks for sharing this. v2.24 included a change in how copied resource files are handled. Prior to v2.24, NCrunch would attempt to infer where the file should be copied and it would copy the file itself using its own logic. This caused some problems with files using a 'Link' property or th…
09 Aug 2016 22:37 UTC
-
Convert Trial to full Licence (already purchased)
[quote=9swampy;9086] Reinstalled upgrading to 2.25.0.1 and the Licence Server option became available.[/quote] Thanks for confirming you found the solution to this. The license server connectivity options were introduced in v2.15.
09 Aug 2016 01:49 UTC
-
NCrunch Build error
[url=http://www.ncrunch.net/download]v2.25 has just been released[/url] including a fix for the duplicate resource copying exception described above. When NCrunch encounters this scenario, the first copied file will simply be ignored (as it would be overwritten by the second).
08 Aug 2016 05:08 UTC
-
System.IndexOutOfRangeException from NCrunch compiler, MSBuild working fine
[url=http://www.ncrunch.net/download]v2.25 has just been released[/url] including a change that will make the instrumentor ignore any lines that are pointing at invalid/missing lines of code.
08 Aug 2016 05:06 UTC
-
What triggers a build?
[url=http://www.ncrunch.net/download]v2.25 has just been released[/url], including a fix for the 'Files excluded from auto build' setting not working for file system changes.
08 Aug 2016 05:04 UTC
-
System.IndexOutOfRangeException from NCrunch compiler, MSBuild working fine
Hi, thanks for sharing this issue. It looks to me like there is something not quite right with this assembly. The assembly's PDB file is referencing a source line that doesn't seem to exist in your source code. For example, your codebase contains a source file (let's say "MySourceFile.cs") …
02 Aug 2016 20:37 UTC
-
Load Project failure: Your project.json doesn't have a runtimes section
[quote=pbering;9077]That did the trick! Thank you! Where does this setting come from? The .NET Core preview tooling, Nuget extension or? [/quote] It's related to a Nuget build task responsible for doing some tricky things around resolving packages. By turning off the resolution property, the tar…
01 Aug 2016 11:42 UTC
-
Load Project failure: Your project.json doesn't have a runtimes section
Try adding this to the top of your project file (as the first propertygroup): <PropertyGroup> <ResolveNuGetPackages Condition="'$(NCrunch)' == '1'">false</ResolveNuGetPackages> </PropertyGroup>
01 Aug 2016 11:08 UTC
-
Load Project failure: Your project.json doesn't have a runtimes section
[quote=pbering;9073]It does not seem to have any effect. Even when I exclude both json files from the project, ncrunch still fails. When I remove both json filen (and the lock files) and reloads solution then it works. Added the json files (without including in project) works until dotnet restore. I…
01 Aug 2016 10:42 UTC
-
Load Project failure: Your project.json doesn't have a runtimes section
Try using an MSBuild expression to exclude the json files from the project for NCrunch builds, for example: <ItemGroup Condition="'$(NCrunch)' != '1'"> <None Include="ClassLibrary4.project.json" /> <None Include="project.json" /> </ItemGroup> With this in place, the files won't …
01 Aug 2016 09:10 UTC
-
Missing test coverage dots across projects when referencing build output
Hi, Thanks for sharing this issue. The problem you're experiencing is caused directly by including the bin\output dir in your additional files to include. By doing this, you are effectively including referenced assemblies from the foreground solution, which will not only suppress any capture …
01 Aug 2016 08:53 UTC
-
Load Project failure: Your project.json doesn't have a runtimes section
My first thought was that this error was originating from NCrunch's own DNX integration, as last year there were some builds of NCrunch that specifically looked for project.json and tried to interact with the DNX runtime to load them. This integration was disabled/removed after the DNX runtime chan…
01 Aug 2016 08:44 UTC
-
Load Project failure: Your project.json doesn't have a runtimes section
Thanks for sharing this issue. Can you confirm which version of NCrunch you're running? This looks suspiciously similar to a problem that was fixed late last year.
01 Aug 2016 08:31 UTC
-
NCrunch tries to process unloaded projects
Thanks! I've now reproduced this issue. I will see what I can do to fix it. Meanwhile, to work around this, I'd suggest reloading the project in VS with NCrunch disabled. You can then find the project in the configuration window and set the 'Ignore this project completely' setting to True, then …
30 Jul 2016 05:00 UTC
-
NCrunch Build error
Hi Sheryl, You are correct in your understanding that this is a regression in v2.24. v2.24 introduced a change in the handling of how resource files are copied into project output directories. A fix for this is now pending in the next release of NCrunch, but we need to get you working. Unfor…
29 Jul 2016 06:09 UTC
-
NCrunch Build error
Hi, thanks for sharing this issue. It looks like this project has two or more resource/content files that are marked to be copied into the build output directory, and they are set to copy to the same place. NCrunch isn't handling this right, and it's exploding. It should be possible to narrow…
28 Jul 2016 23:22 UTC
-
NCrunch tries to process unloaded projects
[quote=powerdude;9054] It would be better if NCrunch ignored unloaded projects. It seems the configuration manager does and the projects aren't loaded there and the setting can't be selected.[/quote] Hi, yes, I do agree. The current approach is limited by the way in which the VS integration is…
27 Jul 2016 21:29 UTC
-
Some tests stay on status 'Running (First time run)'
[quote=isb-ik;9052]It seems to be a problem with the NUnit Version. First I have tried NUnit 3.2.1 but the problem was the same. Then I changed back to NUnit 2.6.3 and then all works fine.[/quote] NCrunch uses a completely different adapter for NUnit v2, so this suggests it's something NUnit v3/N…
27 Jul 2016 13:27 UTC