-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
Description
Given I have this tests
`import spock.lang.Specification
class HelloSpockSpec extends Specification {
def "length of Spock's and his friends' names"() {
expect:
name.size() == length
where:
name | length
"Spock" | 5
"Kirk" | 4
"Scotty" | 6
}
} `
When I run the test
Then Spock-reports ; HelloSpockSpec.HelloSpockSpec.html, is generated
And how to generate the feature file: HelloSpockSpec.feature such as
Feature: HelloSpockSpec
Scenario: length of Spock's and his friends' names
Given I have these data
| Spock | 5 |
| Kirk | 4 |
| Scotty | 6 |
Then name.side() == length
Thanks