mam taki blad gdy uruchamiam test ktory byl napisany w specflow w dockerze
The active test run was aborted. Reason: Test host process crashed : Unhandled Exception: System.Net.Sockets.SocketException: Operation canceled
at System.IO.Pipes.NamedPipeServerStream.<WaitForConnectionAsync>g__WaitForConnectionAsyncCore|23_0()
at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
at TechTalk.SpecFlow.Plus.RPC.Server.<>c__DisplayClass9_0.<StartInBackground>b__0(IAsyncResult ar)
at System.Threading.Tasks.TaskToApm.<>c__DisplayClass3_0.<InvokeCallbackWhenTaskCompletes>b__0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
Szukajac informacji o speflow w dockerze nie ma za bardzo informacji, ale z tego co widze, jest to mozliwe.
dockerfile jest bardzo prosty
FROM microsoft/dotnet:2.2-sdk
ARG source
WORKDIR /app
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["dotnet", "vstest", "CM.Data.IntegrationTests.Specflow.dll", "--logger:console;verbosity=Detailed"] # https://github.com/Microsoft/vstest/issues/1580
ktos jakies pomysly? @hauleth wiem, ze duzo zajmujesz sie dockerem, wiec moze cos wiesz mimo ze C# :)
oczywiscie jak uruchamiam po prostu w VS to dziala bez problemow