-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the skip as it was not working correctly
It could not evaluate a variable that was defined on previous steps and during processing we should check that the failures are empty Signed-off-by: Fokion Sotiropoulos <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name : "Testing skip" | ||
testcases: | ||
- name : "do not skip" | ||
steps: | ||
- info : Hello | ||
- name : "skip something" | ||
|
||
steps: | ||
- info: | ||
- Hello | ||
- script : "echo '1'" | ||
vars : | ||
out: | ||
from : result.systemout | ||
- info: | ||
- "do not skip it as it is different" | ||
skip : | ||
- out ShouldEqual '2' | ||
- script: "echo 'false'" | ||
vars: | ||
outAsBool: | ||
from: result.systemout | ||
- info: | ||
- "Fail should be skipped" | ||
skip : | ||
- out ShouldEqual 1 | ||
- info: | ||
- "Fail should be skipped as false" | ||
skip: | ||
- outAsBool ShouldBeFalse |