Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Tests utilising Microsoft.AspNet.TestHost i.c.w. MVC Views fail in NCrunch

    Hi Jens, Thanks for sharing the extension to this issue. I believe you are correct in that copying the .deps files over when 'Copy referenced assemblies to workspace' is enabled would be the correct solution here. I'll see what I can do about arranging a fix.

  2. Two instances of VS2017 installed, NCrunch only install into one

    Hi, This is a known problem and a limitation with the NCrunch installer. Building an MSI that can have multiple dynamically derived install paths is problematic. I haven't yet found an acceptable solution to this problem. For now, it's best to just install the product manually if you have mu…

  3. FileNotFoundException UTFResources

    Make sure when you reference the MSTest nuget packages that you remove all trace of Microsoft.VisualStudio.QualityTools.UnitTestFramework from your solution. As long as your code is still binding to this assembly, it'll still go through the resource manager when attempting to process assertions. …

  4. NCRUNCH 3.3: don't resolve nuget packages in project with project.json

    Hi, thanks for sharing this problem. What you're experiencing is unlikely to be related to the other changes discussed in this thread. When a solution is transferred to a grid node, there is considerable complexity in negotiating Nuget packages between client and server. In theory, the client s…

  5. NCrunch not showing coverage with NUnit TestCaseSource VS2017

    Hi, thanks for sharing this issue and for the code to reproduce it. I've observed the problem appearing exactly as you've described it. This was a hard one to figure out. The problem is because of differing instrumentation between the netstandard project and the .NET framework test project. …

  6. MSTest tests that are inconclusive are still "failing"

    Hi, thanks for sharing this problem. This looks like a compatibility hole. I've just managed to reproduce it myself. I'll see what I can do about getting it fixed. Thanks again for taking the time to report it.

  7. Theory based tests doesn't execute on distributed processing nodes

    [quote=eriove;10569] Adding the invariant culture in the ToString() will really help us. The grid node is in a data center in Norway (where IT sets Norwegian settings) and we share the grid node between between the Swedish and Lithuanian office.[/quote] Will do. You can expect this in the nex…

  8. Color bullets are not updated

    [quote=jotto;10573]Thanks -- seems like that did the trick![/quote] Awesome, thanks for confirming!

  9. Theory based tests doesn't execute on distributed processing nodes

    I'm impressed you've managed to narrow this down as far as you have. What you're observing makes perfect sense. When NCrunch constructs an identifier for a testcase, it performs a .ToString() on the arguments without specifying any culture preference (oops). So if your decimal separator is differ…

  10. Local variables unavailable when debugging

    [quote=eriove;10563]After a couple of restarts of the computer and then it started working. With the latest release (3.9) I've reverted to the files installed by nCrunch and it still works.[/quote] NCrunch v3.9 introduced more structurally correct integration with Xunit2, so I hope we should no l…

  11. nunit TestCase not working with ExpectedResult

    Hi Henrry, Thanks for sending through the sample project. I've tested this at my end and I can confirm that it works with the latest release of NCrunch (v3.9). I believe the problem you are experiencing is due to a compatibility issue that has been fixed in a later release than the one you ar…

  12. Color bullets are not updated

    Thanks for confirming this. This smells very much like cache file corruption. I'd be interested to know if clearing the cache file resolves the issue. You don't need to wait for it to reappear - I'd recommend nuking the cache file immediately.

  13. NUnit Testoutput does not contain Lines Written by TestContext.WriteLine()

    Hi, thanks for sharing this issue. This looks like a potential integration issue. NUnit is probably capturing the text within the TextContext, then outputting this in an area that NCrunch doesn't capture. I've made a note to review the integration to see if it can be resolved. For the time bei…

  14. Framework Utilisation Types missing Xunit v2+

    v3.8 of NCrunch contained a defect where it was not correctly calling .ToString() on the contents of array parameters being used for test cases. This meant that the parameters you were passing in were actually being converted to a different value, which would have had the unintentional side-effect …

  15. Theory based tests doesn't execute on distributed processing nodes

    Hi, thanks for sharing this problem. Could you confirm that you also upgraded the version of the grid node so that it is running v3.9? Also make sure that it isn't loading the xunit module from a prior version. You can check this by inspecting the version stamp of the nCrunch.Module.XUnit2.dll fi…

  16. Framework Utilisation Types missing Xunit v2+

    Thanks for sharing the code sample. This is being caused by a compatibility problem between NCrunch and AutoFixture. The code you're using above uses AutoFixture to generate random test data that is used in test parameters and therefore the physical name of each of the test cases is completely r…

  17. Color bullets are not updated

    Does the pattern seem to be consistent, or intermittent? If you right click on the test and choose to run it individually, does the problem go away for the targeted test? Could you try clearing your NCrunch cache file? This is stored under the _NCrunch_SOLUTIONNAME directory adjacent to your .s…

  18. FileNotFoundException UTFResources

    I really think that something is wrong with the Microsoft.VisualStudio.QualityTools.UnitTestFramework binary that you are using. I wonder if this might be a development version of this file. Was it perhaps taken from an RC branch of VS? It seems very strange that this file is referencing Micros…

  19. FileNotFoundException UTFResources

    Ok, let's try installing the missing assembly into the GAC. Hopefully this will work around the issue. You'll probably need to use an administrator command prompt, and to chase down gacutil if it isn't in your path. Try: gacutil /i "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterpri…

  20. Framework Utilisation Types missing Xunit v2+

    The static analysis code itself has been physically removed. You should be able to confirm this by checking for the existence of the 'Analyse assembly' tasks in the NCrunch Processing Queue. The 'Analyse assembly' task is used to execute dynamic analysis. Are you able to share with me the test …