-
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
Is there a reason to add a blank line after a given? #15
Comments
Hi, Yes I did that on purpose in order to separate the "fixtures" bloc and the real test bloc. In your case you do have only one given, but you can have something like that : Given xxx
And yyy
And zzz
When I do aaa
Then bbb
And ccc I think it does improve the readability of the test file. |
Do you think that it could it could be turned off with a configuration parameter? |
It might be yes. I will think about it but it may also become the default value : It you have more than one line break, it would remove extra line break to be only one. |
@murdos this has been released as the default value in version 2.2.1 (2.2.0 + two small fixes when I tested on our stack) |
@jdeniau: thanks! ❤️ |
I was going to apply this plugin to my projects (thanks BTW!), until I noticed that blank lines were added systematically after given phrases, which lead to a strange formatting: why make a separate block for given, but not separate when and then blocks?
Before
After
The text was updated successfully, but these errors were encountered: