Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 1785d55

Browse files
erik-inkapoolstajs
authored andcommitted
Scenario Outline tests are correctly categorized (#36)
They will be categorized under the project the feature file belongs to instead of being categorized under External. See https://github.com/techtalk/SpecFlow/issues/275. Fixes #34
1 parent b3608f7 commit 1785d55

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/SpecFlow.NetCore/AppConfig.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ public static AppConfig CreateIn(DirectoryInfo directory, string testFramework =
5252
return config;
5353

5454
Content = string.Format(Content, testFramework);
55+
56+
// fixes SpecFlow Scenario Outline scenarios appearing under the project they belong to.
57+
// see https://github.com/stajs/SpecFlow.NetCore/issues/34 and https://github.com/techtalk/SpecFlow/issues/275
58+
if (testFramework.ToLower() == "mstest")
59+
{
60+
Content = Content.Replace("</specFlow>", " <generator allowDebugGeneratedFiles=\"true\" />\r\n </specFlow>");
61+
}
62+
5563
WriteLine("Generating app.config");
5664
WriteLine(Content);
5765
WriteLine("Saving: " + config.Path);

0 commit comments

Comments
 (0)