Skip to content

Commit

Permalink
Set unified line break
Browse files Browse the repository at this point in the history
  • Loading branch information
szikszail committed Jul 21, 2017
1 parent 69e07b4 commit 6586073
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 111 deletions.
14 changes: 7 additions & 7 deletions test/data/background.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "Background",
"keyword": "Background",
"name": "this is a background",
"description": "this is a good\n background",
"steps": [
]
{
"type": "Background",
"keyword": "Background",
"name": "this is a background",
"description": "this is a really good\n background",
"steps": [
]
}
4 changes: 2 additions & 2 deletions test/data/background.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Background: this is a background
this is a good
Background: this is a background
this is a really good
background
110 changes: 55 additions & 55 deletions test/data/base.feature
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
@tag1 @tag2
Feature: Hello world
As a smth
I want to do smth
So that I am smth

Background:
Given this is a given step
And this is a given step too
When this is a when step
And this is a when step too
Then it should be a then step
And it should be a then step too

@tag2 @tag3
Scenario: Name of scenario
Description of the scenario

Given this is a given step
And this is a given step too
When this is a when step with data table
| val1 |
| val2 |
| val3 |
And this is a when step with data table too
| col1 | col2 |
| val1 | val2 |
| val3 | val4 |
And this is a when step with doc string
"""
Hello world
Hello World
hello World
hello world
"""
Then it should be a then step
And it should be a then step too

@tag2 @tag(3)
Scenario Outline: Name of background <key>
Given this is a given step
And this is a given step too
When this is a when step <key>
And this is a when step too
Then it should be a then step
And it should be a then step too

@tagE1
Examples: First examples
| key |
| value1 |

@tagE2
Examples: Second examples
| key |
@tag1 @tag2
Feature: Hello world
As a someone
I want to do smth
So that I am smth

Background:
Given this is a given step
And this is a given step too
When this is a when step
And this is a when step too
Then it should be a then step
And it should be a then step too

@tag2 @tag3
Scenario: Name of scenario
Description of the scenario

Given this is a given step
And this is a given step too
When this is a when step with data table
| val1 |
| val2 |
| val3 |
And this is a when step with data table too
| col1 | col2 |
| val1 | val2 |
| val3 | val4 |
And this is a when step with doc string
"""
Hello world
Hello World
hello World
hello world
"""
Then it should be a then step
And it should be a then step too

@tag2 @tag(3)
Scenario Outline: Name of background <key>
Given this is a given step
And this is a given step too
When this is a when step <key>
And this is a when step too
Then it should be a then step
And it should be a then step too

@tagE1
Examples: First examples
| key |
| value1 |

@tagE2
Examples: Second examples
| key |
| value2 |
72 changes: 36 additions & 36 deletions test/data/scenario.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"type": "Scenario",
"keyword": "Scenario",
"name": "this is a scenario",
"description": "this is a good\n scenario",
"tags": [
{
"type": "Tag",
"name": "@tag1"
},
{
"type": "Tag",
"name": "@tag2"
}
],
"steps": [
{
"type": "Step",
"keyword": "Given ",
"text": "this is a given step"
},
{
"type": "Step",
"keyword": "When ",
"text": "this is a when step with docString",
"argument": {
"type": "DocString",
"content": "Hello\nWorld"
}
},
{
"type": "Step",
"keyword": "But ",
"text": "this should not be a when step"
}
]
{
"type": "Scenario",
"keyword": "Scenario",
"name": "this is a scenario",
"description": "this is a really good\n scenario",
"tags": [
{
"type": "Tag",
"name": "@tag1"
},
{
"type": "Tag",
"name": "@tag2"
}
],
"steps": [
{
"type": "Step",
"keyword": "Given ",
"text": "this is a given step"
},
{
"type": "Step",
"keyword": "When ",
"text": "this is a when step with docString",
"argument": {
"type": "DocString",
"content": "Hello\nWorld"
}
},
{
"type": "Step",
"keyword": "But ",
"text": "this should not be a when step"
}
]
}
22 changes: 11 additions & 11 deletions test/data/scenario.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@tag1 @tag2
Scenario: this is a scenario
this is a good
scenario

Given this is a given step
When this is a when step with docString
"""
Hello
World
"""
@tag1 @tag2
Scenario: this is a scenario
this is a really good
scenario
Given this is a given step
When this is a when step with docString
"""
Hello
World
"""
But this should not be a when step

0 comments on commit 6586073

Please sign in to comment.