Skip to content

Discussion - how to generate feature file #258

@AnthonyTonda

Description

@AnthonyTonda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions