mytitle
PassedSpecification
Given stub Assert that t some test title is equal to "mytitle"
Result
PASSED
Given When Stacks Givens
PassedSpecification
Given some data setup and more data setup When some action Then Noting that do assertions Assert that givens has all keys "1" "2" "blarg" Assert that givens is value containing "hi" 12 "foo" Assert that actual has key "foo"
Result
PASSED
| 1 | hi |
|---|---|
| 2 | foo |
| blarg | 12 |
foob
Inner Test Ranges Over Values / n
PassedSpecification
Given given some stuffs "a" When Givens "value" = test value Givens "expected" = test expected Captured io "actual" = len test value Then Assert that actual "actual" is equal to test expected
Result
PASSED
| expected | 1 |
|---|---|
| value | n |
1
title
PassedSpecification
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 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
Result
PASSED
0
Go Given Fails In Meta Data
FailedSpecification
Given stub testing t Then Testing t fail now Assert that t stub testing t failed is equal to true
Result
FAILED
Given Title Strips Extra Spaces
PassedSpecification
Given t Assert that t some test title is equal to "given title strips extra spaces"
Result
PASSED
Go Given Logs With Meta Data
FailedSpecification
Given stub testing t Then Testing t logf "wobble bop" Assert that t stub testing t failed is equal to true Assert that t stub testing t test output is equal to "wobble bop"
Result
FAILED wobble bop
skiptest
SkippedSpecification
Given some data setup and more data setup Skipping this one "some reason" When some action Then Noting that do assertions Assert that t skipped is equal to true Assert that t test output is equal to "some reason"
Result
SKIPPED some reason
| 1 | hi |
|---|---|
| 2 | foo |
| blarg | 12 |
foob
Given When Sets Interesting Given
PassedSpecification
Given some data setup When some action Then Noting that do assertions Assert that actual "foo" is equal to "foob"
Result
PASSED
| 1 | hi |
|---|---|
| 2 | foo |
foob
title
FailedSpecification
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 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
Result
FAILED
Expected: value with length 2
but: <length was 1>
2
a