Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
Optimize reuse of TestHost*.exe processes
What you're describing is essentially this setting - [url=https://www.ncrunch.net/documentation/reference_global-configuration_pipeline-optimisation-priority]Pipeline Optimisation Priority[/url]. Though the setting value of 'Throughput' is currently inadequate for you because it doesn't factor in…
21 Jun 2018 22:57 UTC
-
Console tool, -GridServerReferencesForSolution results in InvalidCastException
The passing of configuration settings via command line has always been intended to be a lightweight approach to configuring the console tool. This is because some of the configuration settings can be quite hard to specify without tricky syntax, making them error prone. It isn't always easy to have…
21 Jun 2018 22:41 UTC
-
Ensure that restore has run and that you have included 'netcoreapp2.0'
Hi, thanks for sharing this issue. This can happen sometimes if the underlying platform gets itself in a bind and ends up out of sync. Try the following: 1. Close all instances of VS 2. Remove the contents of your 'bin' and 'obj' directories in ALL related projects 3. Restart VS and open th…
21 Jun 2018 22:34 UTC
-
Console tool, "ERROR:" not reported back to TeamCity?
Yes, probably this should be flagged an error. We'll take a look at this.
21 Jun 2018 22:29 UTC
-
Console tool, determine on which grid node a test failed on?
At the moment, this isn't being reported to TeamCity. It can be found by checking the results in the NCrunch HTML report instead.
21 Jun 2018 22:28 UTC
-
Console tool, custom environment variables with connection string not picked up
Array-based settings like the CustomEnvironmentVariables are handled by the configuration system in a simplified way, where the values for the settings can only be declared at one level. For example, you may have some CustomEnvironmentVariables declared at global level, and some more declared at …
21 Jun 2018 22:27 UTC
-
Optimize reuse of TestHost*.exe processes
It's only really possible to have one test project per process. This is because each test project can have an entirely different dependency structure or even target platform, so it wouldn't be reliable for us to try and re-use the same process to load multiple test projects. Test runners also don'…
21 Jun 2018 07:12 UTC
-
Tests interacting with Odata fail with System.TypeInitializationException
Thanks for these extra details. I think the root issue here is that the NCrunch environment is resolving this dependency to a facade assembly, rather than a runtime one. This would be because the build system is using the facades at the time it builds your project. Although such behaviour is no…
20 Jun 2018 21:34 UTC
-
No tests discovered... (licensed)
Thanks for confirming. I have a feeling this may be a configuration issue. Something you can try is deleting all the NCrunch related files in the solution (both the solution-level and project-level files) while the IDE is closed. This will effectively reset your configuration. If there's a probl…
20 Jun 2018 21:30 UTC
-
Optimize reuse of TestHost*.exe processes
When using grid nodes, the 'Max test runners to pool' setting is controlled by the configuration on the grid node itself (the client setting won't affect the remote machines). So unless you have this setting up quite high on your grid nodes, the pool probably isn't large enough to accommodate 15 te…
19 Jun 2018 23:34 UTC
-
Tests interacting with Odata fail with System.TypeInitializationException
Hi, thanks for sharing this issue. It looks like NCrunch is trying to resolve this file to a build-time facade rather than the run-time binary. Can you share any more details about how this test project is structured? Which platform does it target? Is it using any .NET Standard dependencies?…
19 Jun 2018 23:16 UTC
-
Console tool, -GridServerReferencesForSolution results in InvalidCastException
Sorry! Somehow this request slipped my net. This particular setting doesn't support injection via the command line. For supplying grid nodes, I recommend using a configuration file instead.
19 Jun 2018 23:09 UTC
-
No tests discovered... (licensed)
Hi, thanks for sharing this problem. Do you experience this issue if you create a default MSTest project using one of the VS project templates? (i.e. a dummy test project with a single test). Do you know which version of NCrunch you have upgraded from?
19 Jun 2018 23:04 UTC
-
Console tool, "MaxNumberOfProcessingThreads" vs CPU cores assigned to NCrunch ?
In some ways I guess this isn't really surprising, as MS have been making more and more of their code run in parallel. It's probably reasonable to expect that the Roslyn compiler (VBCSCompiler) uses as many threads as it can when it compiles your code. The invocation of VBCSCompiler is handled b…
19 Jun 2018 08:05 UTC
-
Optimize reuse of TestHost*.exe processes
Thanks for sharing the report. In the approximately 2 minute capture included in the report, the engine successfully re-used test processes 11 times, and in 4 cases needed to start new ones. I couldn't find anything unusual about the process signatures that would force the engine to unnecessaril…
19 Jun 2018 01:32 UTC
-
Console tool, limit memory usage of NCrunch.exe?
Is this being used in the context of a large solution with high code coverage density? Such a scenario can make NCrunch especially hungry. The bulk of the engine's memory consumption comes from its code coverage indexing. We need to individually track and efficiently index every line covered by…
19 Jun 2018 01:11 UTC
-
Console tool, is setting "Analyse line execution times" used?
Actually, this setting IS used by the console tool. Though it's probably entirely ineffective, since right now we don't have any way to actually report the performance data. It might be wise to turn it off in your console tool configuration.
19 Jun 2018 01:07 UTC
-
Optimize reuse of TestHost*.exe processes
Thanks for sharing this problem. Is there any chance you could submit a bug report? The volume of log data here might reduce the effectiveness of the bug report system, but there's still a chance I might be able to find useful information in there. Are you making use of any NCrunch.Framework at…
16 Jun 2018 00:54 UTC
-
NCrunch was unable to restore Nuget packages required to build a test environment for this project
[quote=soadyp;12342]is there a close ticket option. ? If so feel free to close. I just couldnt see it.[/quote] I'm glad you managed to solve this. For a bit of background, this is a step NCrunch does to restore packages that it needs internally if it can't find the packages already installed in …
16 Jun 2018 00:51 UTC
-
Console tool, "MaxNumberOfProcessingThreads" vs CPU cores assigned to NCrunch ?
The CPUCoresAssignedToX settings are only applicable when using NCrunch inside Visual Studio. When working using the console tool or a grid node, these settings are completely ignored. The NCrunch console tool does not have any CPU core affinity assigned to it (at least, not by its own code). Thi…
15 Jun 2018 06:15 UTC