Forum member

GreenMoose

511 posts

Posts by GreenMoose

  1. Tweak settings to behave like "dotnet test" runner with 1 process ?

    Hi. I am currently facing a problem in a XUnit project where we have a test collection of 1 time data setup, run multiple tests in different test fixtures, and then 1 time data tear-down. These tests utilizes XUnit Collection attribute, so when running with dotnet test they run only the setup/te…

  2. NCrunch.Framework 4.17.0.5 transitive dependency vulnerability

    NCrunch.Framework v 4.17.0.5 apparently has a vulnerability in System.Net.Http 4.3.0 via the transitive dependency? [img=https://i.imgur.com/YySXneJ.png]screenshot[/img]

  3. See test duration while it is running?

    Thanks, got it. I added a feature request for it https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/47189465-update-ui-of-how-long-a-running-test-has-been-runn

  4. See test duration while it is running?

    [v4.14.0.7] Is there a way to see duration (so far) a test has been running for, while it is running? (Scenario: I am trying to run long running tests 1min+ manually, but while I wait for execution I want to see how long it has been running for so e.g. after 3 minutes I can cancel it and inves…

  5. ExcludeFromCodeCoverage not supported for local functions?

    My bad, just realized it is the LINQ expression only that is covered. The rest of function on line 34-40 it is actually being ignored. (And the coverage behavior for LINQ thing is to be expected, and workaround is to use NCrunch suppression comments).

  6. ExcludeFromCodeCoverage not supported for local functions?

    [4.14.0.7] [ExcludeFromCodeCoverage] attribute seems to be "ignored" for local functions, is this due to technical limitations or a bug? [img=https://i.imgur.com/8434r27.png]screenshot[/img] p.s. maybe include some info about this attribute and its limitation in NCrunch in https://www.ncrunch…

  7. What is "Log Summary" window for?

    [v4.14.0.7] In "NCrunch tests" we have Trace Output (e.g. console output), Execution Steps, Log Summary and Hot Spots. For my tests the "Log Summary" is empty. What is it supposed to show? Thanks.

  8. Reset status on treeview node with children does not work

    [quote=MaxRonin;16331]In my particular case, it's weird though, because they don't fail on the CI - only on developer machines.[/quote] FWIW, in my experience it is often due to incorrect setups/teardowns of a test (e.g. test2 relies on test1's setup), or they rely on static test data that is not r…

  9. NCrunch does not work if dotnet is not installed at C:

    [v4.13.0.1] I have installed dotnet at G:, but NCrunch fails with error below: [quote] [PID:6464 17:07:33.5543 LocalBuildTask-183] ERROR (Internal): System.Exception: Unable to find an installation of .NET Core at the expected install path of 'C:\Program Files\dotnet' [/quote] (I have no su…

  10. Path too long error still prevents project from building

    I still see this issue with vstudio2022 and NCrunch v4.13 (when introducing NCrunch to colleagues that have not reconfigured workspace path). Is there any plan of to resolve this? The solution builds fine with dotnet build and in vstudio, but NCrunch fails (with default settings). Modifying wo…

  11. asp.net rest api .net 6, code coverage for Program.cs?

    [v4.11.0.2] Hi, when using the .net 6 vs2002 template for web api, the last line seems never to be covered. My goal is to have 100% coverage (ideally with the [ExcludeFromCodeCoverage] attribute if needed), but am a bit puzzled of how to achieve this in the new rest api design. Any hints of h…

  12. Changing expired personal license to company seat license

    [quote=Remco;14980] Some corporate customers try to use the licensing tiers as a backdoor to reduce the overall cost of licensing, for example, by sponsoring their devs for personal licenses. The intention of the licensing system is to disallow this sort of thing as it unfairly disadvantages more …

  13. Is there a way to stagger the starting of parallel executed tests?

    Are you sure the timeouts are not due to deadlocks due to parallel testing? Using a global mutex around the test setup (if that is what causing the "overload") might also be an easy solution to your problem, and depending on number of grid nodes you use (assuming if each grid node has its own db th…

  14. ERROR (Analysis):...NullReferenceException

    Just realized this is same as https://forum.ncrunch.net/yaf_postsm14542_Analysis-failure-for-generic-fixture.aspx , but since fix for that version is not publicly available (and our license expired 20th of Feb) I will just change the 9 involved fixtures to not be generic. p.s. I am switching employ…

  15. ERROR (Analysis):...NullReferenceException

    [NCrunch Console Tool v4.3.0.13] I am getting below errors on a old project I am trying to run in a TeamCity agent (docker container). Was the below error due to some bug related generic fixtures or is this a new one? I do not see this when running NCrunch in vstudio. [quote] [16:52:38] : [S…

  16. Installing NCrunch with Multi Vs2019 instances?

    FWIW @abelb: Just peeked into my mailbox history and Michael did some installer fixes in 4.0.x I think, and apparently I got it working when explicitly running the NCrunch isntaller for the Community edition like below (in an elevated shell): [quote]C:\Program Files (x86)\Microsoft Visual Studio\20…

  17. Analysis failure for generic fixture

    Yes (incl. using UseDynamicAnalsys)! Thanks

  18. Analysis failure for generic fixture

    I am using target .net framework v4.5, but it also failed with newer ones. I have reproed it on 2 computers, you can find a repro sample (289kB) here: https://gofile.io/?c=IZSuup

  19. Analysis failure for generic fixture

    Changing to StaticAnalysis voids the error but the test will not run with error message below: [code] NCrunch was unable to locate this test during NUnit's execution run. This problem can be caused by tests with names that contain random elements, such as through the use of NUnit's RandomAttribut…

  20. Analysis failure for generic fixture

    FWIW: It does not help if I upgrade to NUnit 2.7.1, but issue resolves when upgrading to NUnit 3.0. Unfortunately v3.0 has some breaking changes in this solution that causes us to remain on NUnit v2 (Work of upgrading to v3 was started a long time ago but then halted due to the workload involved).