-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more test cases and nuget package
- Loading branch information
1 parent
57dee4b
commit ff15c1f
Showing
15 changed files
with
158 additions
and
14 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
15 changes: 15 additions & 0 deletions
15
src/SpecFlow.AdvanceSteps.SpecFlowPlugin/AdvanceStepsException.cs
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,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SpecFlow.AdvanceSteps | ||
{ | ||
public class AdvanceStepsException : Exception | ||
{ | ||
public AdvanceStepsException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/SpecFlow.AdvanceSteps.SpecFlowPlugin/App.config.transform
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<specFlow> | ||
<plugins> | ||
<add name="SpecFlow.PeekSteps" type="Runtime" /> | ||
</plugins> | ||
</specFlow> | ||
</configuration> |
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
25 changes: 25 additions & 0 deletions
25
src/SpecFlow.AdvanceSteps.SpecFlowPlugin/TagNotSetException.cs
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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SpecFlow.AdvanceSteps | ||
{ | ||
public class TagNotSetException:Exception | ||
{ | ||
private readonly string tagName; | ||
private readonly string methodName; | ||
|
||
public TagNotSetException(string tagName, string methodName) | ||
{ | ||
this.tagName = tagName; | ||
this.methodName = methodName; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return $"Please set '{this.tagName}' tag on the scenario before attempting to call the method '{this.methodName}'"; | ||
} | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
src/SpecFlow.AdvanceSteps.SpecFlowPlugin/app.config.install.xdt
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,9 @@ | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<specFlow xdt:Transform="InsertIfMissing" /> | ||
<specFlow> | ||
<plugins xdt:Transform="InsertIfMissing" /> | ||
<plugins> | ||
<add name="SpecFlow.PeekSteps" type="Runtime" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" /> | ||
</plugins> | ||
</specFlow> | ||
</configuration> |
7 changes: 7 additions & 0 deletions
7
src/SpecFlow.AdvanceSteps.SpecFlowPlugin/app.config.uninstall.xdt
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,7 @@ | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<specFlow> | ||
<plugins> | ||
<add name="SpecFlow.PeekSteps" type="Runtime" xdt:Transform="Remove" xdt:Locator="Match(name)" /> | ||
</plugins> | ||
</specFlow> | ||
</configuration> |
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,5 @@ | ||
Get-ChildItem *.csproj -Recurse | ForEach-Object { Remove-Item *.nupkg } | ||
Get-ChildItem *.csproj -Recurse | ForEach-Object { & nuget.exe pack $_ -Symbols -IncludeReferencedProjects -Prop Configuration=Release -Prop Platform=AnyCPU} | ||
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | ||
|
||
|
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
32 changes: 32 additions & 0 deletions
32
tests/SpecFlow.AdvanceSteps.Integration.Tests/Regression.feature.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.