Closed mbuhot closed 5 years ago
This writeup is exemplary and the work looks great too (I'm not familiar with what the code area you've changed so will make no comment regarding wether it looks safe or correct beyond lgtm). Seems to me your test should become a new sample, a new readme.md entry or both - AFAIR there are few Table examples, and this example in particular shows stuff that's pretty much a new usage paradigm beyond what's in Phil's blogs etc. I'm not pushing for any particular direction, but to not make this part of block of work while you have it top of mind would seem like a lost opportunity.
Thanks @bartelink I've added some documentation to the README describing how Type Conversions, Tables and Lists work, based on the source of ScenarioRun.fs
.
:love: That's fantastic! @mchaloupka any last minute things before this merges ?
Thanks @bartelink, I've incorporated some of the suggestions.
@mchaloupka Any further changes required before this PR can be merged?
No additional comments. If there will be no additional comment today, I will merge it.
Thanks for your work!
This PR addresses an issue where
Table
parameters cannot be used along sideFunctional Injection
in the same step. The existing code assumed that the Table would always be the last argument, while also assuming that the trailing arguments would be injected.This change puts the Table argument after the regex captures, leaving the trailing arguments to be injected.
To test this change I modified the
Shopping.feature
andShoppingSteps.fs
files:Before this commit, the tests would fail with: