You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes:
- More tests for skip in setup.
- More tests and implementation for skip with teardown
including running teardown after skip, using skip in teardown,
skip in teardown after failure in body, and failure in teardown
after skip in body.
- Tests and support for continuable failure before skip.
- Tests and support for pass execution in combination with skip.
- Fixes for skip in teardown.
Copy file name to clipboardExpand all lines: atest/testdata/running/skip/skip.robot
+67-7Lines changed: 67 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -33,19 +33,73 @@ Skip Keyword with Custom Message
33
33
Skip Skipped due to reasons
34
34
Fail Should not be executed!
35
35
36
-
Skipped in Setup 1
36
+
Skip in Setup
37
37
[Documentation] SKIP Setup skip
38
38
[Setup] Skip Setup skip
39
39
Fail Should not be executed!
40
40
41
-
Skipped in Setup 2
42
-
[Documentation] SKIP Setup skip
43
-
[Setup] Run Keywords
44
-
... No Operation AND
45
-
... Skip Setup skip AND
46
-
... Fail Should not be executed!
41
+
Remaining setup keywords aren't run after skip
42
+
[Documentation] SKIP Skip between keywords
43
+
[Setup] Skip with keywords before and after
47
44
Fail Should not be executed!
48
45
46
+
Skip in Teardown
47
+
[Documentation] SKIP Teardown skip
48
+
No operation
49
+
[Teardown] Skip Teardown skip
50
+
51
+
Remaining teardown keywords aren't run after skip
52
+
[Documentation] SKIP Skip between keywords
53
+
No operation
54
+
[Teardown] Skip with keywords before and after
55
+
56
+
Skip in Teardown After Failure In Body
57
+
[Documentation] SKIP Skipped in teardown:\nTeardown skip\n\nEarlier message:\nFailure in body!
58
+
Fail Failure in body!
59
+
[Teardown] Skip Teardown skip
60
+
61
+
Teardown is executed after skip
62
+
[Documentation] SKIP Skip in body
63
+
Skip Skip in body
64
+
[Teardown] Log Teardown is executed!
65
+
66
+
Fail in Teardown After Skip In Body
67
+
[Documentation] SKIP Skip in body\n\nAlso teardown failed:\nTeardown failed!
68
+
Skip Skip in body
69
+
[Teardown] Fail Teardown failed!
70
+
71
+
Skip in Teardown After Skip In Body
72
+
[Documentation] SKIP Skipped in teardown:\nTeardown skip\n\nEarlier message:\nSkip in body
73
+
Skip Skip in body
74
+
[Teardown] Skip Teardown skip
75
+
76
+
Skip with Continuable Failures
77
+
[Documentation] SKIP Skipping should stop execution but test should still fail\n\nAlso failures occurred\n\n1) We can continue!\n\n2) We can continue again!
78
+
Run Keyword And Continue On Failure
79
+
... Fail We can continue!
80
+
Run Keyword And Continue On Failure
81
+
... Fail We can continue again!
82
+
Skip Skipping should stop execution but test should still fail
83
+
Fail Should not be executed!
84
+
85
+
Skip in Teardown After Continuable Failures
86
+
[Documentation] SKIP Skipped in teardown:\nTeardown skip\n\nEarlier message:\nSeveral failures occurred:\n\n1) We can continue!\n\n2) We can continue again!
87
+
Run Keyword And Continue On Failure
88
+
... Fail We can continue!
89
+
Run Keyword And Continue On Failure
90
+
... Fail We can continue again!
91
+
[Teardown] Skip Teardown skip
92
+
93
+
Skip with Pass Execution in Teardown
94
+
[Documentation] SKIP Skip in body
95
+
[Teardown] Pass Execution Thou shall pass
96
+
Skip Skip in body
97
+
98
+
Skip in Teardown with Pass Execution in Body
99
+
[Documentation] SKIP Then we skip
100
+
[Teardown] Skip Then we skip
101
+
Pass Execution First we pass
102
+
49
103
Skipped with --skip
50
104
[Tags] skip-this
51
105
[Documentation] SKIP ${TEST_OR_TASK} skipped with --skip command line option.
0 commit comments