Forum member

GreenMoose

511 posts

Posts by GreenMoose

  1. Support Interface‑Based Exclusive Resource Declarations

    [b]Problem[/b] Given a generic NUnit test fixture: [code=csharp] [TestFixture(typeof(SqlLiteInMemoryFixture))] [TestFixture(typeof(SqlServerFixture))] internal class CountryModelOperationsTest<T> : ExampleWebApiTest<T> where T : DbFixture<ExampleWebApiDbContext>, new() { // tests…

  2. MCP server

    [quote]Allowing AI to query NCrunch has much potential[/quote] +1! Nowadays it feels there is a big traction to "sell in" NCrunch internally with colleagues. I used to use NCrunch to demonstrate TDD, but nowadays when AI agents "can write" the tests for you trying to persuade devs to do "TDD manua…

  3. NUnit 4 and ParallelizableAttribute

    [v5.13] Background: I'm working in a legacy xUnit project and I want to introduce the use of NUnit instead (for multiple reasons). Some people are using Macs and cannot be persuaded to take advantage of NCrunch. Problem: I noticed that when using [Parallelizable] with NUnit 4.3.2 (to make it…

  4. xunit v3, missing xunit.v3.runner.inproc.console net6.0?

    [v5.13.0.1] Trying out xunit v3 but NCrunch is returning error below for me [quote] An error occurred while analysing this project after it was built: Unable to resolve an assembly required for the execution of Xunit3 on this machine. The assembly was expected at the following path: C:\Users\m…

  5. Xunit.DependencyInjection and OperationCanceledException

    FWIW, I probably can remove the package all together for this project so it isn't a big issue for now, but it seems to be quite a popular nuget package so it maybe can be interesting to look into if it is NCrunch's behavior or the package itself that is causing it.

  6. Xunit.DependencyInjection and OperationCanceledException

    [v5.10.0.7] I bumped into a test project that is using [url=https://www.nuget.org/packages/Xunit.DependencyInjection/]Xunit.DependencyInjection[/url] which is quite impossible to run with NCrunch. I tried creating a separate project with just below content, and the test fails if NCrunch runs i…

  7. Static init code coverage is suppressed when TestCaseSource is used

    [v5.6.0.1] When using TestCaseSource, I cannot get coverage for static initialization code (running test in new process). When not using TestCaseSource, it works as expected. Is this expected behavior? [b]Scenario 1[/b] [img=https://i.imgur.com/aDzHAJx.png]Scenario1[/img] [b]Scenario 2[…

  8. NCrunch Hot Spots not updating when coverage filter is active

    [v5.6.0.1] Given I have filtered test coverage, Is NCrunch Hot Spots supposed to update between test runs or not? Repro: 1. Run test1 in a new process. 2. Show code coverage only for that test, notice window "Ncrunch Hot Spots" is reflecting this filtered coverage. 3. Run same test again w…

  9. [Isolated] not tearing down dotnet.exe process?

    Ok thanks. Though the [url=https://www.ncrunch.net/documentation/reference_runtime-framework_isolated-attribute]doc[/url] says [quote] Tests that are marked with this attribute will be executed in a process that is spawned specifically for the test alone. When the test completes execution, the pr…

  10. [Isolated] not tearing down dotnet.exe process?

    [v5.6.0.1/vs2022/net8] Given below code using [Isolated] attribute, shouldn't the dotnet.exe process be terminated once a test completes? (second test will fail due to dotnet.exe process is still hanging around) [code=csharp] using System.Reflection; using NCrunch.Framework; using NUnit.F…

  11. Rider: Slow animation when displaying two NCrunch views

    [v5.3.0.2] The views are very slow when displayed and I couldn't find a way to disable the "animations" of views in Rider. Some times it it is much slower than shown below. It only seem to happen if I have 2 views docked in same area e.g. left has 2 views; Processing Queue + Configuration, as s…

  12. Rider: NCrunch stuck in infinite window refresh loop when having 2 solutions opened.

    FWIW, this now happens to me even though I haven't moved any window. Maybe it's the layout previously being cached or something. (Will go back to VStudio for my multi solution work for now 😱)

  13. Rider: Cannot enable NCrunch if opening a csproj file instead of sln

    Ok. FWIW, IMHO it's a minor issue. I just happened to notice it when trying out to do a repro. NCrunch even states "You can Enable NCrunch<...>while a solution is open." (in both VS/Rider though).

  14. Rider: NCrunch stuck in infinite window refresh loop when having 2 solutions opened.

    [v5.3.0.2] This was an interesting one. If you "dock" a window in Rider while having 2 solutions opened (in 2 different Rider "instances"), and then refocus other solution, NCrunch keeps flickering back and forth forever until you kill the nCrunch.Rider.EngineHost processes. What I did to repr…

  15. Rider: Cannot enable NCrunch if opening a csproj file instead of sln

    [v5.3.0.2] If I open a csproj file in Rider "Enable NCrunch" is grayed out (it works in VStudio). IF adding the same csproj file to a solution and open the solution, "Enable NCrunch" becomes enabled.

  16. Rider: "Split right" requires Rider restart to get coverage markers back

    [v5.3.0.2] So I've had a lot of issues with coverage markers vanishing without knowing exactly why. Now I noticed Rider has a "Split Right" and "Split and Move Right", and I was using "Split Right". When using Split Right you get a cloned tab without coverage markers. If you then close origina…

  17. Rider: Rider's gutter "hint" icon hiding NCrunch coverage marker

    [v5.3.0.2] As seen in screenshow, Rider's gutter icon is hiding NCrunch's coverage marker for the current line. Is there a plan to fix this or is it technically not possible ? (I would rather hide the Rider's icon since I mostly use Alt+Enter anyhow, and it's available with RMB if I really need to…

  18. Rider: "Log to output window", where?

    [v5.3.0.2] NCrunch has a setting "Log to output window" but I cannot find how to open this output view in Rider, is it possible? Thanks.

  19. Rider: Cannot resize NCrunch Tests window

    [v5.3.0.2] I had NCrunch docked at bottom (I want it docked on bottom right side, below editors, but cannot get that to work), when finding usages of a symbol and clicking the toolbar to show it in its own view, it is visible at bottom left. I cannot resize the NCrunch window though so I must unpi…

  20. Rider: Pin covering test (shortcut) pins all tests in fixture

    [v5.3.0.2] / Rider v2023.3.3 When trying to pin a test via keyboard shortcut it pins all tests in that fixture (NUnit). Pinning via RMB menu works as expected. (then pinning stopped working all together, sent a exception via bug report) *Edit: Works after restart of Rider so maybe related to…