Example Test

Contents

My First Skipped / a

Specification

        Given we are testing the system setup that is a bit dodgy to test
        Skipping this one if the value is fff test "some data % s does not work yet" test actual
        When something happens with the test
        Then
        Assert that t test actual is equal to "a" reason "we only want to assert if test actual is a not empty"

Test results:

TEST PASSED
        

Interesting Givens

foofar faff
actual a

a

1

Without Given

Specification

        When t something happens
        Then
        Assert that testing actual "actual" is equal to "some output"

Test results:

TEST PASSED
        

Interesting Givens

actual

some output

My First

Specification

        Given testing the system setup
        When something happens
        Then noting that passed in testing should be used for assertions
        Noting that we do some assertions here commenting why
        Assert that testing the data returned "actual" is equal to "some output"

Test results:

TEST PASSED
        

Interesting Givens

foofar faff

actual

some output

My First Ranged

This test tests over a range of values. Lorum ipsum dolor, lorum ipsum dolor lorum ipsum dolor. Lorum ipsum dolor.

Comments on new lines will be split into paragraph sections.

Empty lines will be removed. Do not remove this comment. Thanks.

Specification

        Given we are testing the system setup with test data test
        When something happens with the test
        Then
        Noting that do assertions
        Assert that with the stored "actual" has length test expected

Test results:

TEST FAILED
        
Expected: value with length 2
     but: <length was 1>

Interesting Givens

foofar faff
actual x

x

2

My First Ranged

This test tests over a range of values. Lorum ipsum dolor, lorum ipsum dolor lorum ipsum dolor. Lorum ipsum dolor.

Comments on new lines will be split into paragraph sections.

Empty lines will be removed. Do not remove this comment. Thanks.

Specification

        Given we are testing the system setup with test data test
        When something happens with the test
        Then
        Noting that do assertions
        Assert that with the stored "actual" has length test expected

Test results:

TEST PASSED
        

Interesting Givens

foofar faff
actual aaaa

aaaa

4

My First Skipped / fff

Specification

        Given we are testing the system setup that is a bit dodgy to test
        Skipping this one if the value is fff test "some data % s does not work yet" test actual
        When something happens with the test
        Then
        Assert that t test actual is equal to "a" reason "we only want to assert if test actual is a not empty"

Test results:

TEST SKIPPED
        some data fff does not work yet

Interesting Givens

foofar faff
actual fff