Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber expressions support #2595

Merged
merged 40 commits into from
Jul 8, 2022
Merged

Cucumber expressions support #2595

merged 40 commits into from
Jul 8, 2022

Conversation

gasparnagy
Copy link
Contributor

@gasparnagy gasparnagy commented May 5, 2022

WIP: Cucumber expressions support

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Performance improvement
  • Refactoring (so no functional change)
  • Other (docs, build config, etc)

Checklist:

  • I've added tests for my code. (most of the time mandatory)
  • I have added an entry to the changelog. (mandatory)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@gasparnagy gasparnagy marked this pull request as ready for review May 24, 2022 09:19
@gasparnagy
Copy link
Contributor Author

gasparnagy commented May 24, 2022

@SabotageAndi The PR is finally getting closer to finish, so probably it is worth starting to review it. There are a few open points (you will see TODOs), that we should discuss and I will make some further exploratory testing.

We should consider calling this v4.0 BTW -- but let's discuss this.

@SabotageAndi
Copy link
Contributor

@gasparnagy not sure I find time to have a look at this week. But next week should be possible.

@gasparnagy
Copy link
Contributor Author

@SabotageAndi OK/thx. I am on a conf Thu-Fri.

Copy link
Contributor

@SabotageAndi SabotageAndi left a comment

Choose a reason for hiding this comment

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

I wasn't able to spend enough time to completly understand everything that is done in the PR, but what I saw and understand looked good.

@focus
Feature: Cucumber expressions

Rule: Shoud support Cucumber expressions
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo, it should be Should


return result.ToString();

throw new NotImplementedException();
Copy link
Contributor

Choose a reason for hiding this comment

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

some leftover?

@gasparnagy gasparnagy merged commit 310c072 into master Jul 8, 2022
@gasparnagy gasparnagy deleted the cucumber_expressions branch July 8, 2022 13:11
Code-Grump pushed a commit to Code-Grump/SpecFlow that referenced this pull request Mar 29, 2023
* Add Cucumber.CucumberExpressions package dependency

* Refactor binding discovery to ise IStepDefinitionBindingBuilder

* Refactor StepDefinitionBinding to contain source expression, expression type and validity

* Fix unit tests

* Introduce CucumberExpressionStepDefinitionBindingBuilder

* Use IExpression on IStepDefinitionBinding

* small fix & ignore cukeex scenario

* Fix old project format tests

* Introduce step definition error handling

* Integrate Cucumber Expressions

* Force regex for Step Def

* Force regex for Step Def once more

* add tests

* enum support

* tests for custom type

* support for custom parameter names for StepArgumentTransformation

* try cleaning up string handling (not working)

* fix string handling?

* Add scenarios, fix [StepArgTrafo]

* fix unit test

* refactor RegexFactory

* provide cucumber expression step definition skeletons

* remove parameter type dumping

* Generate regex-based snippets in ^xxx$ style, cleanup

* Upgrade Cucumber.CucumberExpressions to v16.0.0

* allow overriding {int}, define: {double}, {decimal}, cleanup

* Cleanup {string} handling

* fix build?

* Add specflow-config.json

* update spec specflow-config.json wit cucumber expressions

* Add {byte}, {long}

* Check is [Obsolete] works

* Extend docs with Cucumber-Expressions

* Show upgrade guide link in binding error message.

* Remove @Focus from scenarios

* Update changelog.txt

* fix typo

* fix cucumber expression dependency
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.

2 participants