Skip to content

Latest commit

 

History

History
196 lines (117 loc) · 2.75 KB

FakeTest.md

File metadata and controls

196 lines (117 loc) · 2.75 KB

Report for com.athaydes.spockframework.report.FakeTest

##Summary

  • Total Runs: 10
  • Success Rate: 50.0%
  • Failures: 3
  • Errors: 2
  • Skipped: 1
  • Total time: Unknown

Features

A first test

Result: FAIL

  • Given: we have x and y

  • And: some more things

  • When: I do crazy things

  • Then: I get one iteration pass and another fail

  • Where: The examples below are used

x y
a a
b c

The following problems occurred:

  • [b, c]
Condition not satisfied:

x == y
| |  |
b |  c
  false
  1 difference (0% similarity)
  (b)
  (c)

Another feature!!!!

Result: PASS

  • Given: Setup block here

  • Expect: Expecting something ??

A when then spec

Result: PASS

  • When: This is the when

  • Then: This is the then

Please ignore me

Result: IGNORED

  • Given: Nothing

  • When: Do nothing

  • Then: Nothing happens

A test with an error

Result: ERROR

  • When: An Exception is thrown

  • Then: Will never succeed

The following problems occurred:

java.lang.RuntimeException: As expected

A test with a failure

Result: FAIL

  • When: Do nothing

  • Then: Test fails

The following problems occurred:

Condition not satisfied:

3 == 2
  |
  false

An incredibly long feature description that unfortunately will popup in some cases where business

analysts write these too detailed overviews of what the test should be all about when what they really
should do is to let the details go in the body of the test using the Gherkin language which underlies BDD
and is proven to make it easier for all involved to understand what the test is doing, what the inputs are
and what the expected outcomes are in such a way that the best possible common understanding is reached

Result: PASS

  • Expect: The long description above to look good in the report

A Spec with empty block Strings

Result: PASS

  • Given: ----

  • When: ----

  • Then: ----

An @Unrolled spec with x=0 and y=1

Result: PASS

  • Given: nothing

  • Expect: 0 to be 0

  • And: An error if y is 5

  • Where: ----

x y
0 1

An @Unrolled spec with x=2 and y=3

Result: FAILURE

  • Given: nothing

  • Expect: 2 to be 0

  • And: An error if y is 5

  • Where: ----

x y
2 3

The following problems occurred:

  • [2, 3]
Condition not satisfied:

x == 0
| |
2 false

An @Unrolled spec with x=0 and y=5

Result: ERROR

  • Given: nothing

  • Expect: 0 to be 0

  • And: An error if y is 5

  • Where: ----

x y
0 5

The following problems occurred:

  • [0, 5]
java.lang.RuntimeException: y is 5

Generated by Athaydes Spock Reports