-
Notifications
You must be signed in to change notification settings - Fork 5
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
And after Then should not rerun setup #2
Comments
This sounds good. I'd like to keep mocha-given as close to jasmine-given as possible to to make it exchangeable at any point. To get it right, this means, two If you feel like working on this with me, I'd be more than happy. |
Yeah, that's how jasmine-given works. Let me know how you want to proceed. |
I added you as a collaborator. I'd suppose we start on a feature branch to implement this. |
I created a feature branch with some code cleanup: I am looking forward to see some contributions! |
Cool. I had started to look at it at one point but didn't make much progress and have been busy lately. Hopefully I can come back to it soon (since I use this in all my node projects now). |
+1 |
Hey guys. May I tentatively and politely enquire as to if there has been any progress on this? :) |
Hey @digitalsadhu, I did some work on it a while back, but it proved to be slightly more complicated than I thought. It's still on my radar . . . not sure if @rendro has looked at it at all. But thanks for the reminder, I do want to see this get finished. |
Hey, I looked at it as well, but I moved abroad recently and had a bit of a busy time. I will put this issue back on my todo list! |
k. Thanks for the replies guys. |
👍 -- I am using mocha-given for the first time and this is exciting to see my project ported! However I just hit a bit of a wall due to this issue. D'oh. I wonder why it affects mocha-given and not jasmine-given? |
It was held up a bit by this issue (requiring a Given -> before) rendro/mocha-given#2
I use jasmine-given at work (and have even worked with Justin Searls on writing some parts of it), and one of the fundamental goals is to only run setup (
Given
,When
) once perThen
. I've noticed in my tests using mocha-given thatwill run all
Given
s andWhen
s twice. Which kind of defeats the purpose. Now, to only run setup once, instead of getting the nice formatting of cascadingAnd
s, I have to put everything in one giantThen
block. If you check out https://github.com/searls/jasmine-given/blob/master/app/js/jasmine-given.coffee#L50 and https://github.com/searls/jasmine-given/blob/master/app/js/jasmine-given.coffee#L82, thesubsequentThen
mechanism tacksAnd
functions on so that they're executed as part of the sameit
statement.In other words I want to do something like:
and have the
Given
andWhen
run once instead of three times.I'm willing to work on this (or work on this with you) if you want.
The text was updated successfully, but these errors were encountered: