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

Commit

Permalink
Scenario Outline tests are correctly categorized (#36)
Browse files Browse the repository at this point in the history
They will be categorized under the project the feature file belongs to
instead of being categorized under External.

See SpecFlowOSS/SpecFlow#275.

Fixes #34
  • Loading branch information
erik-inkapool authored and stajs committed Oct 3, 2016
1 parent b3608f7 commit 1785d55
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SpecFlow.NetCore/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ public static AppConfig CreateIn(DirectoryInfo directory, string testFramework =
return config;

Content = string.Format(Content, testFramework);

// fixes SpecFlow Scenario Outline scenarios appearing under the project they belong to.
// see https://github.com/stajs/SpecFlow.NetCore/issues/34 and https://github.com/techtalk/SpecFlow/issues/275
if (testFramework.ToLower() == "mstest")
{
Content = Content.Replace("</specFlow>", " <generator allowDebugGeneratedFiles=\"true\" />\r\n </specFlow>");
}

WriteLine("Generating app.config");
WriteLine(Content);
WriteLine("Saving: " + config.Path);
Expand Down

0 comments on commit 1785d55

Please sign in to comment.