-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathstress-tests.feature
More file actions
89 lines (73 loc) · 2.56 KB
/
Copy pathstress-tests.feature
File metadata and controls
89 lines (73 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Feature: Stress tests
Scenario Outline: a scenario outline
When A <word> and <anonymous>
Then They will match <expected word> and <expected anonymous>
Examples:
| word | anonymous | expected word | expected anonymous |
| 123.123 | -999.9999 | "123.123" | "-999.9999" |
| -123,123 | -999,9999 | "-123,123" | "-999,9999" |
| 'abc' | -999,9999 | "'abc'" | "-999,9999" |
| abc | -00:00,00 | "abc" | "-00:00,00" |
Scenario Outline: lets put the quotes in the step ...
When A <word> and <anonymous>
Then They will match "<expected word>" and "<expected anonymous>"
Examples:
| word | anonymous | expected word | expected anonymous |
| 123.123 | -999. 9999 | 123.123 | -999. 9999 |
| 'abc' | -00:00,00 | 'abc' | -00:00,00 |
Scenario: Doc string with quotes
When There is a doc string:
"""
This is a docstring with quotes
after a step
"""
Scenario: Doc string with backticks
When There is a doc string:
```
This is a docstring with backticks
after a step
```
Scenario: Doc string as vector
When There is a doc string as vector:
"""
This is a docstring
which we access
as std::vector<std::string>
"""
Scenario: Empty cells in data table
When There is an empty table cell
| | | |
| | | |
Scenario Outline: Empty cells in examples
When Some values <val1>, <val2> and <val3> are empty
Examples:
| val1 | val2 | val3 |
| | | |
| | | |
Examples:
| val1 | val2 | val3 |
| "" | "" | "" |
| "" | "" | "" |
Examples:
| val1 | val2 | val3 |
| "" | "" | |
| "" | "" | |
Examples:
| val1 | val2 | val3 |
| | "" | |
| | "" | |
Scenario: Literal parenthesis in step text
When There is a point at (3,4)
Then The point should be at coordinates 3 and 4
Scenario: Literal parenthesis in step text
When There is a point at (-3,-4)
Then The point should be at coordinates -3 and -4
Scenario: Singular optional text
When I have 1 item in stock
Then The stock count should be 1
Scenario: Plural optional text
When I have 5 items in stock
Then The stock count should be 5
Scenario: Literal curly braces in step text
When I see {status} in the raw output
Then The captured text should be "{status}"