Skip to content

chore: migrate away from SpecFlow to ReqnRoll for BDD E2E tests#356

Merged
askpt merged 7 commits intoopen-feature:mainfrom
kylejuliandev:chore/switch-to-reqnroll-for-e2e-tests
Apr 23, 2025
Merged

chore: migrate away from SpecFlow to ReqnRoll for BDD E2E tests#356
askpt merged 7 commits intoopen-feature:mainfrom
kylejuliandev:chore/switch-to-reqnroll-for-e2e-tests

Conversation

@kylejuliandev
Copy link
Contributor

@kylejuliandev kylejuliandev commented Apr 21, 2025

This PR

  • Swaps SpecFlow out for ReqnRoll. ReqnRoll is a fork of the SpecFlow BDD testing framework, so largely the migration was relatively simple. For context, SpecFlow is has been retired and is no longer being actively maintained.
  • Updates XUnit to 2.9.3 (same that can be found in the dotnet-sdk).
  • Fix unit test issues after upgrade to XUnit.

Related Issues

Fixes #346

Notes

ReqnRoll complained about async void (antipattern anyway), so I've updated those steps to use async Task instead.

Follow-up Tasks

How to test

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
@kylejuliandev kylejuliandev requested review from a team as code owners April 21, 2025 16:26
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
* FlagNotFoundException is never thrown in Flagd nor in the base SDK
  itself. Not sure how this test was passing before but I've updated the
  exception to use the actual one

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Copy link
Member

@askpt askpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@aepfli aepfli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@kylejuliandev
Copy link
Contributor Author

I'll rerun dotnet format when I get some time later today

* After upgrading XUnit a bunch of new warnings were added. CI fails
  with these so I have fixed those warnings. They mostly concern
  incorrectly using async

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
@askpt
Copy link
Member

askpt commented Apr 23, 2025

Sorry @kylejuliandev for all the merge conflicts! 🙈

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
@askpt askpt merged commit 6536c9b into open-feature:main Apr 23, 2025
11 checks passed
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request May 30, 2025
…-feature#356)

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weyert de Boer <weyert@innerfuse.biz>
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request Jun 19, 2025
…-feature#356)

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request Jun 19, 2025
…-feature#356)

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weyert de Boer <weyert@innerfuse.biz>
@kylejuliandev kylejuliandev deleted the chore/switch-to-reqnroll-for-e2e-tests branch February 3, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate away from SpecFlow for BDD/E2E Tests

9 participants