raniejade/kspec

Improve junit reporting

raniejade opened this issue · 1 comments

Current runner extends ParentRunner, which treats the class containing the @RunWith annotation to be the root test suite. As an improvement we can make every Given clause as the root test suite.

e.g.

class TestSpec: Speck({
    Given("this foo") {
        When("this bar") {
            Then("foobar") { 
                ...
            }
        }
    }
})

Current runner will have this hierarchy:

TestSpec
  --> Given this foo
      --> When this bar
         --> Then foobar

What we really want is:

Given this foo
--> When this bar
   --> Then foobar

Not possible.