
packages.config<PackageReference> tagsSpecFlow.Tools.MsBuild.Generation NuGet packageSpecFlowSingleFileGenerator custom toolEnable SpecFlowSingleFileGenerator Custom Tool option in Visual Studio extension settings<Major>.<Minor>.<Patch> 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
{
"bindingCulture": {
"language": "en-us"
},
"language": {
"feature": "en-us"
},
"plugins": [],
"generator": {
"allowDebugGeneratedFiles": true
},
"stopAtFirstError": true
}
Sadly I don't have one. It's just simple specflow project that I would like to ran on docker
vstest with specflow on docker gives this error back
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()
Test Run Aborted.
Total tests: Unknown
Passed: 1
Everything is running on the same container and communication is within that container
The only thing what comes to my mind (after many hours of checking what could be wrong) is that pipes between local processes somehow end-up not working in my setup. That's why locally (windows) it works fine and on kubernates it does not (linux)
duplicate of https://github.com/techtalk/SpecFlow/issues/1696
@SabotageAndi I keep clicking on that duplicate, but it's some kind of recursion because I am ending up on your comment :D
This is first time I see that post is duplicate of itself :)
Ups
It should be https://github.com/techtalk/SpecFlow/issues/1662
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@SabotageAndi I keep clicking on that duplicate, but it's some kind of recursion because I am ending up on your comment :D
This is first time I see that post is duplicate of itself :)