Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. NCrunch Build Failure of Unit Test Project

    Hi Sam, I don't think the warning is related to the package resolution issue. Could you try the following for me? 1. Start NCrunch, let it run until you see the failure 2. Go to your NCrunch configuration for the project that is failing 3. Set 'Build log verbosity' to 'Detailed'. 4. Go t…

  2. Not initializing due to exception

    Does replacing the $(MSBuildProjectName) reference with $(AssemblyName) in the directory.build.props file make any difference? Usually replacing the OutputPath/OutDir properties shouldn't create a problem. Did you need to do this to solve a different error? The .editorconfig file won't be aut…

  3. NCrunch Build Failure of Unit Test Project

    Hi Sam, It's possible for a system to have multiple Nuget package roots. I don't think having the Xamarin path in the list should cause any problems. I think something critical is malfunctioning in your build system. Try right-clicking on the failed project in the NCrunch Tests Window, then …

  4. NCrunch Build Failure of Unit Test Project

    Hi Sam, Thanks for sharing this issue. The .NET assembly resolution is an extremely complex monster with a wide range of environmental components that can cause assembly resolution to behave differently between machines, even when the same source code is involved. Obtaining a full understan…

  5. Not initializing due to exception

    Thanks for sharing the extra details. I see now where the compatibility hole is. We aren't able to properly handle an overridden BaseIntermediateOutputPath in a directory.props file using $(MSBuildProjectName). This is due to technical limitations with the way that MSBuild works and how we need…

  6. Not initializing due to exception

    [quote=christopher7694;15417] I have a Directory.Build.props file that uses the two properties: BaseIntermediateOutputPath and IntermediateOutputPath. Does NCrunch pick up these properties?[/quote] Changing these properties massively increases the complexity of the load system under NCrunch, e…

  7. Not initializing due to exception

    Hi, thanks for sharing this problem. The project.assets.json file is supposed to be produced by VS prior to NCrunch loading the project. Sometimes, it isn't ready in time and NCrunch needs a reload cycle to pick it up. Can you confirm whether building the solution in VS then resetting NCrunch r…

  8. Unstable Test Generation (Removing tests doesn't adjust discovery count)

    [quote=GibSral;15413] I am using the latest ncrunch version (4.8.0.3)[/quote] Did the error contain any other useful analysis? Perhaps a list of the tests that are missing/surplus between the discovery run and the test run?

  9. Unstable Test Generation (Removing tests doesn't adjust discovery count)

    Could you also confirm which version of NCrunch you're running? In v4.7 (released two months ago), we introduced improved handling of this situation so that the engine will report more detailed information on which tests might be responsible for the problem. If you're running an older version than…

  10. Unstable Test Generation (Removing tests doesn't adjust discovery count)

    Hi Lars, Thanks for sharing this issue. I can't see anything wrong with this specific bit of test generation. I'm wondering if the issue might be related to something else in your test suite. Could you try the CSV/Text export comparison described above to see if this highlights any consisten…

  11. Enable NCrunch is disabled

    Thanks for submitting the bug report. It looks like something is blocking the engine process from starting. If you haven't already, try reinstalling NCrunch. Check that the files in the NCrunch install directory aren't being blocked by the OS/Explorer (it's frustrating but it does often do this…

  12. Enable NCrunch is disabled

    Hi, thanks for sharing this problem. Can you confirm whether you're using a preview version of VS? Could you submit an NCrunch bug report after you've opened a solution in the IDE?

  13. Strong name validation failed

    You can use an #if NCRUNCH directive to replace the key token in the declaration. For example: #if NCRUNCH [assembly: InternalsVisibleTo("Friend1")] #else [assembly: InternalsVisibleTo("Friend1, PublicKey=xyz")] #endif If you don't actually need the test project to be signed, I would re…

  14. UserException - targetting netstandard 2.0

    Hi Matthew, Thanks for sharing this issue. Have you identified any pattern around when the issue appear? Things to watch for: - The issue appearing right after VS is started - The issue appearing after you update projects externally, such as after doing a git pull My gut feel here is that …

  15. Strong name validation failed

    Hi, thanks for sharing this problem. Something must have gone wrong in the signing of this assembly. It isn't usually necessary for test assemblies to be signed, so you can probably resolve this issue by turning on the [url=https://www.ncrunch.net/documentation/reference_project-configuration_pr…

  16. Nasty bug with Ignored tests

    You could try placing the acceptance tests in their own [url=https://www.ncrunch.net/documentation/concepts_test-categories]category[/url], then adjusting the [url=https://www.ncrunch.net/documentation/reference_solution-configuration_tests-to-execute-automatically]tests to execute automatically[/ur…

  17. Nasty bug with Ignored tests

    Hi, thanks for sharing this issue. When ignoring tests, we identify those tests by their structural name in the codebase. If the name of a test changes, the selector used to ignore the test is invalidated. The namespace forms a critical part of the test's name. We have no other way to iden…

  18. Enabling Ncrunch on any new project causes hang and crash

    Thanks letting me know what the cause was. We'll get a fix put in so it doesn't bother anyone else :)

  19. Enabling Ncrunch on any new project causes hang and crash

    Hi, thanks for sharing this problem. I'm willing to bet something has gone wrong in your global config file. Delete the contents of C:\Users\USER\AppData\Roaming\NCrunch while the IDE is closed. This should reset your global configuration and hopefully resolve the issue.

  20. Failed to Load Any Projects in NCrunch

    For this particular problem, I don't expect the logs will be able to tell us much ... as the issue is more around something not being reported rather than a specific failure inside NCrunch. Still, it's probably worth submitting a bug report. I'll review the log in the report to see if there's anyt…