Forum member

Micah71381

27 posts

Posts by Micah71381

  1. Test fails in NCrunch and passes in other runners.

    The following Unit Test (NUnit Framework) fails when run in NCrunch but passes when run in other test runners. [code=csharp][Test] public void weak_reference_test() { var weakReference = new WeakReference(new Object()); GC.Collect(); Assert.IsFalse(weakReference.IsAlive); }[…

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

    I didn't know about v2. I installed it and attempted to do what you suggested and it works but when I add a new test I have to repeat the process again since it is not automatically included in the things to show coverage for by default. This is definitely better than my previous solution (disabli…

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

    I have two unit test projects. One is a legacy project that is being phased out, the other is a new project with tests written in a more sound way. During normal development, all unit tests are run (both projects). When I am working on improving my unit test coverage, only the new project is run …

  4. Processing Time column in Tests window aggregate.

    In the NCrunch Tests window there is a Processing Time column. It is my understanding that the column shows the time it took to execute the thing on that line. However, the view is a tree view, meaning tests are nested inside of their classes. In order to find the tests that took the longest, I h…

  5. Brace on new line && code coverage.

    If you create a test method and put the open curly brace on the same line as the method definition, the code coverage '>' indicator in the left margin will show up on the line with the method name (and curly brace). If you put the curly brace on the following line then the '>' shows up on the follo…

  6. Run Engine Mode *ONLY* Tests

    I am in the process of migrating a bunch of old, not terribly maintainable, tests over to a new way of doing things. The new tests are in a different project and I have setup an Engine Mode to filter out the old test project. I would like a way to be able to switch to the aforementioned Engine M…

  7. NCrunch Metrics for single test.

    I am currently working with a legacy code base that has a ton tightly coupled code. I would like a way to be able to quickly see what parts of my code are hit when a particular test is executed. I can use the advanced options when right clicking on a test dot to show code coverage for that test on…