Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. Mac running Parallels Win 8.1 VS 2014 can't initialize

    Hi Chris - It looks like NCrunch isn't able to process paths from a UNC root. '\\psf' fails, though '\\psf\myfiles' should work. I recommend moving the files to work around the problem. I've noted this down to see if I can introduce a fix for it in the next beta build. Thanks! Remco

  2. The current SynchronizationContext may not be used as a TaskScheduler.

    Hi, thanks for sharing this issue. NCrunch doesn't perform any special actions on the SynchronizationContext. Can you share any details around which test framework you are using? Do you also experience this problem with any test runner other than NCrunch? NCrunch can introduce a different ex…

  3. NCrunch.OriginalSolutionPath vs NCrunchOriginalSolutionDir

    Hi, thanks for sharing this. The documentation page above provides information on environment variables/properties that can be accessed during a project's build. The test run-time equivalents of these environment variables are used by the [url=http://www.ncrunch.net/documentation/reference_run…

  4. data directory relative to SolutionDir

    Hi - Yes, the answer is to use the [url=http://www.ncrunch.net/documentation/reference_runtime-framework_environment-class]NCrunchFramework.GetOriginalSolutionPath[/url] method to obtain the original path to the solution. In theory, you can also include the datafile in the [url=http://www.ncrunch…

  5. Code Coverage doesn't update on full rebuild.

    Thanks for the feedback. I'm glad it's an improvement for you. I may also be able to suggest another way to narrow your metrics - by using [url=http://www.ncrunch.net/documentation/concepts_ignored-tests]ignored tests[/url]. If you right-click on your legacy test project and choose to ignore al…

  6. Processing Time column in Tests window aggregate.

    Hi, thanks for sharing this. I can see the annoying limitation here. The Processing Time column is actually a massive over-simplification of several important data elements. It simultaneously represents the 'expected processing time' and the 'actual processing time'. On fixtures, it will repor…

  7. Code Coverage doesn't update on full rebuild.

    Hi, thanks for reporting this issue. I suspect this may be a hole in the synchronisation around the changing of the 'Ignore this project completely' setting. When this setting is turned on, NCrunch will completely avoid loading the project and analysing it for tests, but the solution state for t…

  8. Assembly level attributes

    Hi Bob - You'd use this the same way as other attributes that are specified in AssemblyInfo.cs, for example: [assembly: NCrunch.Framework.ExclusivelyUses("ResourceName")] .. This can be applied in any .cs file, but I'd recommend AssemblyInfo.cs as this is more conventional in C#. Cheer…

  9. Build failed with "SpecificVersion=True"

    Thanks Keith! I have a feeling that this issue is nested pretty deeply in your solution structure and it may take some digging to bring it out. Let me know as soon as you have any code you can send me to make it happen. The .csproj file you'll find in the NCrunch workspace is designed to be bui…

  10. Exceptions in tasks

    Hi, thanks for posting! NCrunch's behaviour around background exception handling is specific to the test framework you're using. The framework itself decides what to do with the exception - in most cases reporting it in such a way that NCrunch will fail the test. My understanding of the TPL i…

  11. Build failed with "SpecificVersion=True"

    Thanks Keith - this is starting to make more sense now. When NCrunch analyses your solution, it traverses the relationships between projects and stores them as part of its working model. These relationships are then simplified into assembly references inside NCrunch's workspaces. You'll notice …

  12. Massive performance difference when using ncrunch

    Great stuff! Thanks for letting me know, and I wish you a great new year :) Cheers, Remco

  13. Massive performance difference when using ncrunch

    Hi, thanks for posting! This is probably being caused by the added weight of NCrunch's instrumentation. There are several ways you can solve this, although they all involve making some trade off. [url=http://www.ncrunch.net/documentation/considerations-and-constraints_heavily-executed-code-unde…

  14. Issue with TypeCatalog only under NCrunch

    Hi, I've prepared a build containing a fix for this issue. It's a V2 build - I hope that's ok. Download links are below: [url=http://downloads.ncrunch.net/NCrunch_VS2012_2.3.0.14.msi]http://downloads.ncrunch.net/NCrunch_VS2012_2.3.0.14.msi[/url] [url=http://downloads.ncrunch.net/NCrunch_V…

  15. Build failed with "SpecificVersion=True"

    Hi Keith - Can you share any more details about how you are making use of SpecificVersion? Are you using this for a project reference? Right now NCrunch considers SpecificVersion when it loads projects, then stores the appropriate assembly reference for later use when building the project. I…

  16. File not copying

    Argh! Worst possible scenario. I suspect this is sequence related then. It is probably dependent upon other tests that have been executed before it in the NCrunch pipeline. I suggest parking the issue until it happens again. There is a high probability that it will come back. If it does, plea…

  17. File not copying

    Ok, so somehow, NCrunch isn't detecting this attribute. Can you confirm whether the namespace for the attribute is Microsoft.VisualStudio.TestTools.UnitTesting.DeploymentItemAttribute? Also, is there any chance you could submit a bug report right after you've run the test? Perhaps the log file wi…

  18. File not copying

    Sorry - I thought I'd also just confirm where the DeploymentItem attribute is declared in your code. You say that this is in the fixture itself - in this do you mean the class declared with [TestClass]? Is there any inheritance involved?

  19. File not copying

    Is the path SECFilingsTool.Tests\citationinfo.js valid when applied relative to the directory of your .sln file? I'm just checking this now with my test solution and it still seems to work with NCrunch... hopefully we can narrow down the point of difference. Do you have many tests that are relyi…

  20. File not copying

    Right. I think we're getting closer here. MSTest in VS2012 has a legacy mode that it activates when making use of a testsettings file. The testsettings file allows the test adapter to perform its own shadow copying, creating the 'Deploy_***** DATE\Out\' directories that are used to run tests. …