Closed hussainsam closed 3 years ago
Here's my package details
<packages>
<package id="log4net" version="2.0.5" targetFramework="net45" />
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net45" />
<package id="SpecFlow" version="2.4.1" targetFramework="net45" />
<package id="SpecFlow.Tools.MsBuild.Generation" version="2.4.1" targetFramework="net45" />
<package id="SpecRun.Runner" version="1.8.5" targetFramework="net45" />
<package id="SpecRun.SpecFlow" version="1.3.0" targetFramework="net45" />
<package id="SpecRun.SpecFlow.2-4-0" version="1.8.5" targetFramework="net45" />
<package id="System.ValueTuple" version="4.3.0" targetFramework="net45" />
</packages>
@hussainsam What is the filter in the srProfile- Files?
@SabotageAndi Below is the Filter, the same tag has in the Feature file.
<TestAssemblyPath> AppFeatureTest.dll</TestAssemblyPath>
<Filter>@sanity_workflow</Filter>
I also tried with
<Targets>
<Filter>@sanity_workflow</Filter>
</Target>
</Targets>
@hussainsam Please post the whole srProfile or make no errors in copy & pasting parts of it.
TestAssemblyPath
and Filter
can be on the same level.
for the filter you are missing a Target
tag before.
I have no idea if your error is now because of an illegal srProfile or not.
Closed because of inactivity
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.
SpecFlow Version:
Used Test Runner
Version number: 1.8.5
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:
<SpecFlow> Section in app.config or content of specflow.json
Repro Project
Issue Description
Local Scenario : I have 2 projects in a solution. After linking the required run settings file and build/rebuild the solution, test runner will not recognize the test cases defined in srs profile. If I rebuild just one project within the solution, test runner identifies the test cases and populates the scenarios in test explorer.
TFS Scenario: I attempted numerous ways to make the test cases recognized while CI build but unfortunately I couldnt do so. Here's my CI build tasks comprises of
Steps to Reproduce
Here's my package details