Amir Kolsky;18676 wrote:
Fair! Here is the exception message -
'C:\Users\despicableMe\AppData\Local\NCrunch\992\6\src\Query.Playwright.Tests\bin\Debug\net10.0\..\..\..\..\Query.Web'. The directory name is invalid.)
---> System.ComponentModel.Win32Exception (267): An error occurred trying to start process 'dotnet' with working directory 'C:\Users\despicableMe\AppData\Local\NCrunch\992\6\src\Query.Playwright.Tests\bin\Debug\net10.0\..\..\..\..\Query.Web'. The directory name is invalid.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Query.Playwright.Tests.LandingPagePlaywrightTests.RunWithAppAsync(Func`2 test) in C:\repos\QueryLocal\src\Query.Playwright.Tests\LandingPagePlaywrightTests.cs:line 269
at Query.Playwright.Tests.LandingPagePlaywrightTests.FileBasedAllSpacesResetsToDefault_Playwright() in C:\repos\QueryLocal\src\Query.Playwright.Tests\LandingPagePlaywrightTests.cs:line 171
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at InvokeStub_Task.Wait(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
From that Exception, which seem to be coming from a functionality in your Test Assembly. I would assume thare is something of with the path, NCrunch copies all Source Code and Dependencies it thinks it needed to a different folder, but this is mostly just compile time dependencies. If you need additional files in your tests, you must configure NCrunch to also copy them.
Your are doing you, but NCrunch using fat dependencies and limiting the Tests to be executed serial, and i would a assume in a specific order is nothing what main point of NCrunch is - running impacted tests as I type as fast as possible.
I could see that you would like to use this as an automated runner as you type also in C#. But Playwright, together with C#, is not a good fit for that (has nothing to do with NCrunch, Playwright without TypeScript is not a superb experience, I'm also stuck with Playwright with .NET, i don't like it).
With Playwright in TypeScript, this is a different story; this has this out of the box. And NCrunch is not involved.