shouldi icon indicating copy to clipboard operation
shouldi copied to clipboard

Integration tests

Open batate opened this issue 9 years ago • 0 comments

shouldi tests follow the pattern of:

test
measure
measure
measure

We would also like to allow tests with the following format:

test1
measure
measure
measure
more-test-1
measure
measure
measure

This test will allow us to do more complex flows and support a better testing structure.

The proposed syntax: instead of with, we'll use sequentially, and instead of setup we'll use step, like this:

sequentially "an integration test" do

  step "description of step one" do
    assign do_something_to: :context
  end

  should_have_key :do_something_to

  step "description of step two" do
    assign do_something_else_to :context
  end

  should_have_key :do_something_else_to
end

batate avatar Mar 02 '15 14:03 batate