Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
8f5a9b0
Remove appveyor pipeline files as we are using github actions now
Nov 9, 2025
ed94955
test if path changes are detected as expected
Nov 9, 2025
3c6be20
change a file to trigger and test samples project change detection va…
Nov 9, 2025
2fd15a8
add conditions to when a package should be created
Nov 9, 2025
4848ffa
Merge branch 'main' of github.com:TestStack/TestStack.BDDfy into feat…
Nov 9, 2025
8d882d7
allow change detection with reference to base
Nov 9, 2025
c822ead
add check if any nugets should be published
Nov 9, 2025
fc2fac9
add option to publish all packages if needed
Nov 9, 2025
af6096a
use latest tag for base
Nov 9, 2025
1fb08e1
clean up appveyor related files
Oct 29, 2025
0e4c208
add step title factory tests
Oct 30, 2025
873213e
add step title factory tests
Oct 30, 2025
1d1ebc0
run tests fighting for configurator in same collection
Oct 30, 2025
051376a
cleanup ExceptionProcessor
Oct 31, 2025
6443698
remove un used property function
Oct 31, 2025
fd01451
cleanup
Oct 31, 2025
515c3d4
remove unused code. these attributes are defined in this assembly but…
Oct 31, 2025
fb6ab69
remove missing doc reference
Oct 31, 2025
ec15ad9
try update gitversion to use beta for non default branches
Oct 31, 2025
fb0273b
fix GitVersion.yml
Oct 31, 2025
6e1c12b
fixed gitversion
Oct 31, 2025
70a776b
add MeansImplicitUseAttribute back in code
Oct 31, 2025
11f7235
clean up
Oct 31, 2025
b86764a
revert to keep all Annotations.cs
Nov 1, 2025
9f3b659
additional coverage
Nov 1, 2025
5175f14
improving code coverage
Nov 1, 2025
5b8a8b7
change workflow to main line
Nov 1, 2025
69aa53f
fix gitversion config
Nov 1, 2025
5748cfe
additional code coverage
Nov 3, 2025
4b99cf7
fix typo in dotnet test command
Nov 3, 2025
abc0a2d
remove run settings
Nov 3, 2025
b0fe5f3
disable diff runner on CI pipeline
Nov 3, 2025
b11f7f7
fix path scrubber to work with windows and linux
Nov 4, 2025
6134526
fix path scrubber regex
Nov 4, 2025
bfd5a02
improve path scrubber
Nov 4, 2025
13acf22
removed .NET 4 related code
Nov 4, 2025
1ae63f6
keep backward compatibilty for Humanize method
Nov 4, 2025
393b3fa
fix mis placed method
Nov 4, 2025
a9cd8c0
fix all usages
Nov 4, 2025
9c0a836
convert to static property function
Nov 4, 2025
20471d6
Refactor to reuse code in TextReporter
Nov 9, 2025
0adb5f0
use startup instead of setup fixture
May 21, 2026
d3004bf
publish nuget with checkbox
May 21, 2026
d617313
Merge branch 'main' of github.com:TestStack/TestStack.BDDfy into feat…
May 21, 2026
f295cb3
add frameworks to build props
May 21, 2026
ad98691
use multiple dotnet versions
May 21, 2026
1550450
fix build and test for dotnet 10
May 22, 2026
4e63378
add net8 and net10 to bddfy
May 22, 2026
f4ab857
add support for both frameworks and tests
May 22, 2026
0ae2842
build outputs to specific framework folders
May 22, 2026
fd1edd6
try fixing props file name
May 22, 2026
6fe688b
rename build props
May 22, 2026
08af1b1
correct CanRunAsyncSteps
May 25, 2026
d6ad31c
fix change detection
May 25, 2026
d2e6266
Move workflow files to correct folder
May 25, 2026
e0338f1
Print SamplesUpdated value
May 25, 2026
f328013
update workflow actions to new version
May 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
dotnet-version: |
8.0.x
10.0.x

- name: Build project
working-directory: src
Expand Down Expand Up @@ -172,8 +174,8 @@ jobs:

- name: Print changed paths
run: |
echo "SamplesUpdated: ${{ steps.changes.outputs.SamplesUpdated }}"
echo "BddfyUpdated: ${{ steps.changes.outputs.BddfyUpdated }}"
echo "SamplesUpdated: ${{ steps.changes.outputs.SamplesUpdated }}"

- name: Create Samples package
working-directory: src
Expand Down Expand Up @@ -210,7 +212,7 @@ jobs:
publish-nuget:
runs-on: ubuntu-latest
needs: build
if: github.event.inputs.runPublish == 'true' || github.ref_name == github.event.repository.default_branch
if: needs.build.outputs.publishNuget == 'true' && (github.event.inputs.runPublish == 'true' || github.ref_name == github.event.repository.default_branch)
environment:
name: Publish
url: https://www.nuget.org/packages/TestStack.BDDfy/
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/copilot-code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Copilot code review

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write

jobs:
copilot-review:
runs-on: ubuntu-latest
steps:
- name: GitHub Copilot review
uses: github/copilot-actions/review@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/copilot-coding-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Copilot coding agent

on:
workflow_dispatch:
push:
branches:
- "copilot/**"

permissions:
contents: write
pull-requests: write

jobs:
copilot-coding-agent:
runs-on: ubuntu-latest
steps:
- name: GitHub Copilot coding agent
uses: github/copilot-actions/coding-agent@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions src/.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<RunSettings>
<RunConfiguration>
<Loggers>
<Logger friendlyName="Console" enabled="True">
<Configuration>
<Verbosity>detailed</Verbosity>
</Configuration>
</Logger>
</Loggers>
</RunConfiguration>
</RunSettings>
16 changes: 16 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<Company>TestStack.BDDfy - http://teststack.github.com/TestStack.BDDfy/</Company>
<Product>TestStack.BDDfy</Product>
<Copyright>Copyright © 2011-2017 TestStack.BDDfy contributors</Copyright>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>
</Project>
5 changes: 0 additions & 5 deletions src/Directory.build.props

This file was deleted.

147 changes: 0 additions & 147 deletions src/Samples/TestStack.BDDfy.Samples/AssemblySetupFixture.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Samples/TestStack.BDDfy.Samples/CanRunAsyncSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal void ThenBddfyHasWaitedForThatSetupToCompleteBeforeContinuing()
_sut.ShouldNotBe(null);
}

internal async Task AndThenBddfyShouldCaptureExceptionsThrownInAsyncMethod()
internal async void AndThenBddfyShouldCaptureExceptionsThrownInAsyncMethod()
{
await Task.Yield();
throw new Exception("Exception in async void method!!");
Expand Down
20 changes: 20 additions & 0 deletions src/Samples/TestStack.BDDfy.Samples/Startup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.Runtime.CompilerServices;
using TestStack.BDDfy.Configuration;
using TestStack.BDDfy.Reporters.Html;
using TestStack.BDDfy.Samples.Atm;

namespace TestStack.BDDfy.Samples
{
public class Startup
{
[ModuleInitializer]
public static void Initialize()
{
Configurator.Processors.Add(() => new CustomTextReporter());
Configurator.Processors.ConsoleReport.Enable();
Configurator.BatchProcessors.MarkDownReport.Enable();
Configurator.BatchProcessors.DiagnosticsReport.Enable();
Configurator.BatchProcessors.Add(new HtmlReporter(new AtmHtmlReportConfig(), new MetroReportBuilder()));
}
}
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<AssemblyName>TestStack.BDDfy.Samples</AssemblyName>
<PackageId>TestStack.BDDfy.Samples</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<Product>TestStack.BDDfy.Samples</Product>
</PropertyGroup>
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../../TestStack.BDDfy/TestStack.BDDfy.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PackageReference Include="coverlet.collector" Version="10.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.5.1" />
<PackageReference Include="shouldly" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.v3" Version="3.2.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ public ReflectiveWithExamples()
})
.BDDfy();
}
public void GivenStepWith__FirstExample__PassedAsParameter(int firstExample)

internal void GivenStepWith__FirstExample__PassedAsParameter(int firstExample)
{
firstExample.ShouldBeOneOf(1, 2);
}

public void AndGivenStepWith__SecondExample__AccessedViaProperty()
internal void AndGivenStepWith__SecondExample__AccessedViaProperty()
{
SecondExample.ShouldBeOneOf("foo", "bar");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TestStack.BDDfy.Tests.Scanner.FluentScanner
{
public class AmbiguousHeaderMatchTests
{
private int _count;
private int _count = 0;

[Fact]
public void ThrowsWhenMultipleHeadersMatchParameterName()
Expand Down
15 changes: 3 additions & 12 deletions src/TestStack.BDDfy.Tests/TestStack.BDDfy.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<AssemblyName>TestStack.BDDfy.Tests</AssemblyName>
<PackageId>TestStack.BDDfy.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../TestStack.BDDfy/TestStack.BDDfy.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PackageReference Include="coverlet.collector" Version="10.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.5.1" />
<PackageReference Include="nsubstitute" Version="5.3.0" />
<PackageReference Include="shouldly" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.v3" Version="3.2.2" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions src/TestStack.BDDfy.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
..\.gitattributes = ..\.gitattributes
..\.gitignore = ..\.gitignore
.runsettings = .runsettings
..\appveyor.deploy.yml = ..\appveyor.deploy.yml
..\appveyor.yml = ..\appveyor.yml
..\build.cake = ..\build.cake
Expand Down
Loading
Loading