mgivney / easyb

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

Empty closures avoid setting a scenario in pending status #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This scenario is given:
scenario "If the price lower then 100 EUR no rabate will given",{
        given "The price is 99,00 EUR",{
        }

        when "pricing will be executed", {
        }

        then "the price should be 99,00 EUR", {
        }

}

After executing the result is:
Scenarios run: 1, Failures: 0, Pending: 0, Time elapsed: 0.751 sec

I would expect:
Scenarios run: 1, Failures: 0, Pending: 1, Time elapsed: 0.751 sec

@see 
http://groups.google.com/group/easyb-users/browse_thread/thread/21620212b5341397

Original issue reported on code.google.com by thorsten.kamann@gmail.com on 14 Dec 2010 at 10:43

GoogleCodeExporter commented 9 years ago

Original comment by ajglo...@gmail.com on 19 Dec 2010 at 6:29

GoogleCodeExporter commented 9 years ago
the workaround is to not include the closure. The discussion is currently 
around adding the same features for pending as for ignore - e.g. pending { 
scenario .... } or pending "scenario name"  etc. Would this achieve what you 
are having issues with?

Original comment by richard....@gmail.com on 19 Dec 2010 at 6:39