Replies: 2 comments
-
This brings up the question, should there be support in test suites for before and after routines also? At present, I find myself needing to craft a test prior to and following an entire set of tests for setups and teardown routines. You get additional "tests" counted in the final result which can be misleading.
After:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm agree that it can be tricky to well understand the condition skip. For example: name: "Skip testsuite"
vars:
foo: bar
testcases:
- name: testA
skip:
- foo ShouldEqual aaa
steps:
- type: exec
script: echo "it's skipped" returns:
say that:
Adding #806 for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to skip a test case or a step the assertions of the skip block MUST be false and when we have all the assertions valid under the skip block then it will execute it. This is confusing in my opinion as it is acting as a precondition of our assertions.
I propose to rename this block to precondition and if we want to use the skip field we can convert it so that if everything is asserted as true then it must actually skip it.
Beta Was this translation helpful? Give feedback.
All reactions