-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend FeatureInfo with FolderPath information (#2090)
* Extend FeatureInfo with FolderPath information * Cleanup + changelog
- Loading branch information
1 parent
0f54260
commit 1a614f2
Showing
19 changed files
with
724 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
namespace TechTalk.SpecFlow.Parser | ||
{ | ||
public class SpecFlowDocumentLocation | ||
{ | ||
public SpecFlowDocumentLocation(string sourceFilePath) : this(sourceFilePath, string.Empty) | ||
{} | ||
|
||
public SpecFlowDocumentLocation(string sourceFilePath, string featureFolderPath) | ||
{ | ||
SourceFilePath = sourceFilePath; | ||
FeatureFolderPath = featureFolderPath ?? string.Empty; | ||
} | ||
|
||
/// <summary> | ||
/// Absolute path of the feature file in the file system | ||
/// </summary> | ||
public string SourceFilePath { get; private set; } | ||
|
||
/// <summary> | ||
/// Relative path within the project to the folder containing the feature, using '/' as path separator character | ||
/// </summary> | ||
/// <returns>A string representing the relative path or empty string if the feature file is in the root folder of the project</returns> | ||
/// <example> | ||
/// "[ProjectDir]\ARootFeature.feature" -> "" | ||
/// </example> | ||
/// <example> | ||
/// "[ProjectDir]\Features\SomeFeature.feature" -> "Features" | ||
/// </example>\ | ||
/// <example> | ||
/// "[ProjectDir]\Features\Configuration\SomeConfigFeature.feature" -> "Features/Configuration" | ||
/// </example> | ||
public string FeatureFolderPath { get; private set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.