Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Console tool, custom environment variables with connection string not picked up

    [quote=GreenMoose;12389] But since there are variables I cannot declare via console parameters, I must supply them via "/c configFile", but then the team settings override it. So basically every value that I cannot specify via "-setting val", I must ensure developers are not adding in solution con…

  2. Closing brace reported as not covered by tests

    Hi, thanks for posting! Looking at this code, it does actually make sense to me that the closing braces wouldn't be marked as covered. This is because they actually are not physically covered. You'll likely notice that if you place a breakpoint on any of these lines, you won't be able to break …

  3. NCrunch Console - Avoid Compilation

    [quote=mizzm001;12387] We have a case where we don't need code coverage. Could we do without compilation?[/quote] Conceptually, it then becomes possible. Unfortunately, in practice, there's no way that the console tool can work without performing the builds itself. This is because the console …

  4. NCrunch Console - Avoid Compilation

    Hi, thanks for posting. Unfortunately not. NCrunch's feature-set requires it to be in control of the build system. It isn't possible to track code coverage data without instrumenting assemblies, which requires post-processing. This means that when using the console tool in your CI system, you …

  5. NCrunch.AppContainer.exe flagged as Trojan:Win32/Bluteal.B!rfn

    Hi, thanks for sharing this. You have my assurance that NCrunch does not contain a virus. This is a false positive. If you like, you can check the results of online services that are able to push the file through a range of different scanners. Virus Total has quite a good one that allows you t…

  6. 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…

  7. 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…

  8. 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…

  9. Console tool, "ERROR:" not reported back to TeamCity?

    Yes, probably this should be flagged an error. We'll take a look at this.

  10. 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.

  11. 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 …

  12. 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'…

  13. 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…

  14. 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…

  15. 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…

  16. 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?…

  17. 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.

  18. 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. 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…

  20. 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…