[VisualStudio Extension] Autoformat allows to have blank lines between steps
The autoformatting with specflow in visual studio is a really nice feature, altough it produces quite a dense output.
Example:
Scenario: Add two numbers Given the first number is 50 And the second number is 70 When the two numbers are added Then the result should be 120
My team was used to manually format the files, using a great deal of autoformatting of tables with the last pipe. We are used to having a blank line between the steps for readability, as we got a lot of tables in them. This would look like:
Scenario: Add two numbers
Given the first number is 50
And the second number is 70
When the two numbers are added
Then the result should be 120
Having the feature to confugre, that there is a blank line between all steps, would help our team adopt auto-formating
-
Official comment
Update: Under consideration
thanks for your request. I updated the title from SpecFlow to the Visual Studio Extension.
We are currently evaluating how we can improve the overall Developer/Tester IDE Experience.
We'll keep you updated.
-
In addition:
Tables should be able to follow immediately after the step they belong to (i.e. being exempt from the newline option)
Scenario: Add two numbers
Given the following data exists:
| column header | column header |
| 50 | 70 |
And another step exists
When we do something with the data
Then the result should be somethingIt would also be great to further indent keywords like "And" and "Or" so it is immediately visible, which steps belong to a certain keyword block and when a new one starts.
Scenario: Add two numbers
Given the first number is 50
And the second number is 70
When the two numbers are added
Then the result should be 120
Scenario: describe system behaviour here with a table
Given the following data exists:
| column header | column header |
| 50 | 70 |
And another step exists
When we do something with the data
Then the result should be something0
Please sign in to leave a comment.
Comments
2 comments