Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Tests unreliable with multi-threaded code.

    Hi, Thanks for sharing this issue. NCrunch doesn't have knowledge over the code being executed - it basically just calls into the tests using reflection and lets your code do its thing. This means that it wouldn't really be possible for NCrunch to directly change the execution path of your te…

  2. Not showing Ignored NUnit tests

    [quote=sgrassie;7440]Thanks for the clarification. Might I suggest a small update to http://www.ncrunch.net/documentation/concepts_ignored-tests with this information.[/quote] Yes, this is a good suggestion. I'll see that this page gets updated.

  3. Project load failure

    Excellent, thanks! I'll see what I can do.

  4. Tests that use await randomly time out

    Hi, Thanks for sharing this. I've given this code a bit of a spin, but can't seem to get it to fail in the way that you've described. I think that probably the failure scenario requires a certain execution sequence that would be baked in through your cached NCrunch data. However, I did see s…

  5. Not showing Ignored NUnit tests

    Hi, thanks for sharing this. NCrunch actually has two concepts of ignored tests: - Tests that are ignored through the 'Ignore test' options inside the Tests Window. This results in expressions being written into the NCrunch settings files for the applicable projects so that the tests are igno…

  6. Project load failure

    [quote=LucasT;7432]OK, I finally fixed the problem. The project imports a lot of third-party target files (specifically: the JetBrains SDK). Some of these files were encoded in UTF-16... [i]without a BOM[/i]. MSBuild loads them just fine, but XDocument seems unable to cope with them. This explai…

  7. Project load failure

    Hi, Thanks for sharing this issue. This problem is originating from the code responsible for loading the project XML into memory. This means that the source of the XML exception is actually the project file itself. Something particularly strange about this is how Visual Studio is able to l…

  8. Windows 10 Build 10130 - VS2015 RC

    [quote=glesueur;7426] Thanks for your time, I have even closed both instances and tried again and its all ok. If it occurs again I'll get the debugger back on the case and pay attention to event logs. Cheers Gary[/quote] Thanks Gary. I'm glad that the instance is working for you again, …

  9. Issues with MSTest AssemblyInitialize

    [quote=thedo;7424]Thanks for the reply! In our case the tests are run serially and constrained to 1 thread, so the optimizations don't seem hugely valid. Is there a way to disable these optimizations via the options (I can see some optimizations can be disabled). [/quote] The behaviour of NCr…

  10. Issues with MSTest AssemblyInitialize

    Hi Neil, Thanks for posting! NCrunch can potentially call AssemblyInitialize multiple times per process, because it can invoke the test framework multiple times (once for each test batch) - see 'Test Runner Re-use' - [url=http://www.ncrunch.net/documentation/considerations-and-constraints_test…

  11. How do I transfer a license?

    Hi Brad - It should just be possible to enter the existing key into the new developer's machine and it will just work. The system is fairly relaxed so you shouldn't need to be concerned about interference from the old user, but if you have a way to contact them, please do request that they remov…

  12. Allow to run the tests on the grid node while the foreground solution is still compiling

    [quote=Ralf Koban;7415] - Start a re-build in VS via "Build" -> "Rebuild solution" [/quote] Gotcha - Sorry, I thought you were referring to an NCrunch build, rather than a VS one. Looking at the code involved, there doesn't seem to be anything that would stop a grid node from picking up work…

  13. Building MonoGame project

    Taking another look at the error you've received from your build, there is a possibility that this error is being thrown because NCrunch hasn't identified the .mgcb files and copied them to the workspace. If you include all .mgcb files using the 'Additional files to include' project-level configura…

  14. Building MonoGame project

    Hi, I'm sorry but monogame projects are not currently supported by NCrunch. If you'd like to see support added for this project type, you're [dead link].

  15. Explicit tests are getting run

    Hi, thanks for posting. Explicit tests have a special status with NCrunch. Unlike other tests, the following rules will apply to them: 1. Explicit tests will never be run automatically due to changes made to a solution 2. Explicit tests will never be run when the 'Run all tests' option is se…

  16. Allow to run the tests on the grid node while the foreground solution is still compiling

    Hi Ralf, Thanks for coming back to the forum on this one. I'd just like to clarify my understanding of what you're describing to make sure I understand this completely. When a test exists in the processing queue, it can optionally be assigned to a server for execution. The effect of this is …

  17. Windows 10 Build 10130 - VS2015 RC

    Hi Gary, Thanks for sharing this issue. Would you be able to answer the following questions? This will help me narrow the problem down. - Do you receive the crash on a specific solution, or on all solutions? If you try to create a simple solution with a single test in it, does it crash? - …

  18. Chained Method Calls Across Multiple Lines - Not Covered

    Hi Mike, Are there any error messages in the collection to enumerate? If the collection is empty, the enumerator will simply return and won't execute the code. NCrunch is very physical in its method of capturing line-by-line execution data. It has no knowledge of enumerables, lambda expres…

  19. Chained Method Calls Across Multiple Lines - Not Covered

    Hi Mike, Thanks for sharing this. The uncovered lines in this case are identified as code by NCrunch, but because they are implemented using IEnumerable, they won't be executed unless you actually enumerate the errorMessages. Try adding a .ToList() or .ToArray() to see if this makes any dif…

  20. No Code Coverage Data

    Hi Ed, Sorry, I'll need to bombard you with some questions to figure out what is happening here :) - Does NCrunch detect the tests themselves and run them with the correct results showing in the Tests Window? - Are you doing any cross-process testing? (i.e. test deliberately launches a new pr…