Skip to content

Commit

Permalink
Add test project to test steps from nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Nov 26, 2023
1 parent e343092 commit 2b60f3e
Show file tree
Hide file tree
Showing 13 changed files with 439 additions and 0 deletions.
31 changes: 31 additions & 0 deletions testProjects/AdditionalStepAssembly/AdditionalStepAssembly.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28721.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AdditionalStepAssembly", "AdditionalStepAssembly\AdditionalStepAssembly.csproj", "{45E2FC12-FA9F-435A-9685-5C14791C81D6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AdditionalStepAssemblyFullFramework", "AdditionalStepAssemblyFullFramework\AdditionalStepAssemblyFullFramework.csproj", "{5E3F51A0-5754-4272-8CDF-CB01625451C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{45E2FC12-FA9F-435A-9685-5C14791C81D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{45E2FC12-FA9F-435A-9685-5C14791C81D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{45E2FC12-FA9F-435A-9685-5C14791C81D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{45E2FC12-FA9F-435A-9685-5C14791C81D6}.Release|Any CPU.Build.0 = Release|Any CPU
{5E3F51A0-5754-4272-8CDF-CB01625451C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E3F51A0-5754-4272-8CDF-CB01625451C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E3F51A0-5754-4272-8CDF-CB01625451C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E3F51A0-5754-4272-8CDF-CB01625451C4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2B1E1CBE-0BF3-4307-A5C4-CF69F6B88A8E}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="SpecFlow.xUnit" Version="*" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="SecondStepAssembly" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
<None Update="specflow.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>


</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: SpecFlowFeature1
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers

@mytag
Scenario: Add two numbers
Given I have entered 50 into the calculator
And I have entered 70 into the calculator
When I press add
Then the result should be 120 on the screen

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"bindingCulture": {
"language": "en-us"
},
"language": {
"feature": "en-us"
},
"plugins": [],
"stepAssemblies": [
{ "assembly": "SecondStepAssembly" }
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net471</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="SpecFlow.xUnit" Version="*" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="SecondStepAssembly" Version="1.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: SpecFlowFeature1
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers

@mytag
Scenario: Add two numbers
Given I have entered 50 into the calculator
And I have entered 70 into the calculator
When I press add
Then the result should be 120 on the screen

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2b60f3e

Please sign in to comment.