From f544c40a6bf21a00a509c8d1866c9f8bf0fb3b08 Mon Sep 17 00:00:00 2001
From: Greg Jastrab
You can tag a feature or a scenario. Feature tags are automatically inherited by all the enclosed scenarios and scenario outlines. Cucumber
also supports some more advanced tag features, such as enforcing the limit on the number of scenarios with a particular tag (useful for work-in-progress) and
running scenarios that satisfy a combination of tags. For information on those options, have a look at
-the
- See
See
For more information on scenario hooks in Ruby, see
For more information on scenario hooks in Ruby, see
You can define scenario hooks in Java using the @Before and @After annotations. For example:
-For more information on scenario hooks in other JVM languages, see
For more information on scenario hooks in other JVM languages, see
You can define scenario hooks in .NET using the [Before] and [After] attributes. For example:
The Ruby version of Cucumber (but not Cuke4Duke and Cuke4Nuke) supports many other types of hooks, such as step hooks
(executed before or after each step) and global hooks (executed
once before any test runs or after all tests finish). They are defined similarly to the scenario hooks covered in this section. For more information, see
-