Closed keenth closed 3 years ago
The problem is not the dotnet vstest
command, the problem is, the publishing before.
Thank you @SabotageAndi, do you mean that during the publishing, the two missing DLLs (Microsoft.VisualStudio.Threading.dll and Microsoft.VisualStudio.Validation.dll)
should be copied from SpecFlowPlusRunner\netcoreapp3.1
folder to the root publish folder? So it is the Visual Studio issue?
I think it's a SpecFlow+ Runner issue and we don't handle the case of publishing the test project correctly. Does it work if you copy these two assemblies to your publishing folder?
Yes @SabotageAndi, If I copy the two DLLs to the publishing folder, all tests are running fine.
Cool, so you have a workaround until we fixed this issue.
We run the tests in the Azure release pipeline as well after publishing. I created a new task to copy the missing DLLs and the tests are running now. Thank you @SabotageAndi for your help.
We fixed this issue with a release in the past.
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.
All tests are running fine in Visual Studio but when running the tests in the command line using
dotnet vstest
from the publish folder all tests are skipped. I have tried to set<Environment testThreadIsolation="SharedAppDomain" />
inDefault.srprofile
but still facing the same issue.SpecFlow+ Runner Version:
SpecFlow Version:
Used Test Runner
Version number: 3.2.15
Project Format of the SpecFlow project
packages.config
<PackageReference>
tags.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation
NuGet packageSpecFlowSingleFileGenerator
custom toolVisual Studio Version
Enable SpecFlowSingleFileGenerator Custom Tool
option in Visual Studio extension settingsAre the latest Visual Studio updates installed?
<Major>.<Minor>.<Patch>
.NET Framework:
Test Execution Method:
C:\Program Files\dotnet>dotnet vstest "C:\Drop\SpecFlow.Tests.dll"
<SpecFlow> Section in app.config or content of specflow.json
Repro Project
Issue Description
Here is the log info, then I found that the two missing DLLs are located in the folder
SpecFlowPlusRunner\netcoreapp3.1
but I don't know why they are not in the root publish folder.Steps to Reproduce