Given t some data setup and more data setup
Skipping this one "some reason"
When some action
Then
Noting that do assertions
Assert that testing t skipped is equal to true
Assert that testing t test output is equal to "some reason"
TEST SKIPPED
some reason
| 1 | hi |
|---|---|
| 2 | foo |
| blarg | 12 |
Given testing t
Some = append some given
Given when
Actual "value" = test actual
Actual "expected" = test expected
Then
Noting that do assertions
Test meta data = append test meta data t * base test meta data
Assert that t test actual has length test expected
Assert that testing some 0 captured io "value" is equal to ""
Assert that testing some 0 captured io "expected" is equal to 0
Assert that testing some 1 captured io "value" is equal to "a"
Assert that testing some 1 captured io "expected" is equal to 2
Assert that testing test meta data 0 failed is equal to false
Assert that testing test meta data 1 failed is equal to true
TEST PASSED
Given testing some data setup and more data setup
When some action
Then
Noting that do assertions
Assert that testing givens has all keys "1" "2" "blarg"
Assert that testing givens is value containing "hi" 12 "foo"
Assert that testing actual has key "foo"
TEST PASSED
| 2 | foo |
|---|---|
| blarg | 12 |
| 1 | hi |
Given testing t
Some = append some given
Given when
Actual "value" = test actual
Actual "expected" = test expected
Then
Noting that do assertions
Test meta data = append test meta data t * base test meta data
Assert that t test actual has length test expected
Assert that testing some 0 captured io "value" is equal to ""
Assert that testing some 0 captured io "expected" is equal to 0
Assert that testing some 1 captured io "value" is equal to "a"
Assert that testing some 1 captured io "expected" is equal to 2
Assert that testing test meta data 0 failed is equal to false
Assert that testing test meta data 1 failed is equal to true
TEST FAILED
Expected: value with length 2
but: <length was 1>