-
Notifications
You must be signed in to change notification settings - Fork 100
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
Flexible Nested Steps #451
Comments
Looks interesting. Would NestedStage be then a predefined class of JGiven? |
Yup the nested class looks like this:
The way I got it working is a massive hack due to some fields being private, could be tidied up. |
hey @janschaefer I've made my implementation public: https://github.com/Lovett1991/JGiven-Extension It's pretty hacky, but I've used it in several projects now with moderately complex tests and it works quite nicely (for me anyway). I used to use a similar library in my previous job but that was kept in house, so when I moved I just wrote this from scratch. I wouldn't mind creating a PR if you think it's a feature worth having, although finding the free time is difficult. |
That is the repo. It has been quite some time since I’ve looked into this. If it’s a feature you’re looking to add to the repository then I can see if I can find some time.
… On 6 Dec 2023, at 14:47, Tiago ***@***.***> wrote:
@Lovett1991 <https://github.com/Lovett1991> could you maybe share more details of your implementation, so that others can explore this option?
Is is this code: https://github.com/Lovett1991/JGiven-Extension/tree/dev ?
Thanks
—
Reply to this email directly, view it on GitHub <#451 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHATEPL6WJHWZRR7Z4V6PSLYICAPHAVCNFSM4LR223PKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBUGMYDGNRTGY4A>.
You are receiving this because you were mentioned.
|
Hi @Lovett1991 if you find the time for a contribution that would be very welcome |
Enhancement Request
Hi guys,
I've extended JGiven to allow for flexible nesting within tests. This means that in code can be written as...
Then in the test you can have code like..
The report then treats this as a nested step...
I'm currently in the process of seeing if I can push this to github, or even contribute to this library directly.
Is this a feature you would accept (provided my organisation permit it?)
The text was updated successfully, but these errors were encountered: