mgivney / easyb

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

Skip scenario #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be very useful to be able to annotate a scenario to skip. the current 
ignores syntax is a 
bit wordy, and @Skip is fast and easy.

Original issue reported on code.google.com by richard....@gmail.com on 13 Apr 2010 at 9:45

GoogleCodeExporter commented 9 years ago
Instead uses ignore and adds supports for wrapping ignore around closure.

ignore {
  scenario "this is purposely a broken scenario", {
      given "some variable with a value", {
          val = 12
      }
      then "to force an error, one should verify it is not 12", {
          val.shouldNotEqual 12
      }
  }

  scenario "another purposely a broken scenario", {
      given "some variable with a value", {
          val = 13
      }
      then "to force an error, one should verify it is not 12", {
          val.shouldNotEqual 13
      }
  }
}

Original comment by richard....@gmail.com on 20 Apr 2010 at 9:53

GoogleCodeExporter commented 9 years ago
patch for it for review

Original comment by richard....@gmail.com on 20 Apr 2010 at 10:00

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed and committed

Original comment by richard....@gmail.com on 1 May 2010 at 10:01