Skip to content

Commit

Permalink
Update traits support
Browse files Browse the repository at this point in the history
  • Loading branch information
Romfos committed Dec 17, 2023
1 parent aaeb2cd commit 2524e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NGherkin.TestAdapter/NGherkinTestDiscoverer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ internal static IEnumerable<TestCase> GetTestCases(string source, IServiceProvid
LocalExtensionData = new TestExecutionContext(feature, scenario, new(example.TableHeader, body), ruleBackgroundSteps)
};

testCase.Traits.AddRange(feature.Tags.Concat(scenario.Tags).Select(x => new Trait(x.Name, string.Empty)));
testCase.Traits.AddRange(feature.Tags.Concat(rule.Tags).Concat(scenario.Tags).Select(x => new Trait(x.Name, string.Empty)));

yield return testCase;
}
Expand Down

0 comments on commit 2524e42

Please sign in to comment.