Forgus / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Please add placeholder replacement to documentary strings in given/when/then #284

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For supporting the idea of fine grained reporting out of specs (e.g. 
https://github.com/damage-control/report) it would be very helpful when 
documentary texts after the block-labels could contain placeholders

e.g.

def "Account can handle withdrawals"() {
    given: "an account with balance of #oldBalance"
    ...

    when: "withdrawing an amount of #withdrawal"
    ...

    then: "the account should have a balance of #newBalance"
    ...

    where:
    oldBalance | withdrawal || newBalance
    ...
}

Original issue reported on code.google.com by kl...@jumio.com on 21 Nov 2012 at 9:23