You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,17 @@ Provides the ability to run Cucumber via Cuke4Duke within the SBT environment. O
12
12
13
13
## Usage ##
14
14
Install the plugin (see later). Be default features files go in a 'features' directory at the root of the project. Step definitions go in "src/test/scala'. Finally from the sbt console call the task:
15
-
> cucumber
15
+
16
+
cucumber
16
17
17
18
The cucumber task can be parameterised with tags or feature names to provide fine grained control of which features get executed. E.g.
18
-
> cucumber @demo,~@in-progress
19
+
20
+
cucumber @demo,~@in-progress
21
+
19
22
would run features tagged as @demo and not those tagged as @in-progress. Also:
20
-
> cucumber "User admin"
23
+
24
+
cucumber "User admin"
25
+
21
26
would run features with a name matched to "User admin". Multiple arguments can be supplied and honour the following rules:
22
27
23
28
* arguments starting with @ or ~ will be passed to cucumber using the --tags flag
@@ -98,7 +103,8 @@ The testProjects/multiModuleTestProject in the plugin source repository shows th
98
103
All gems are automatically installed the first time that the cucumber plugin is run. These gems are installed to the default location {user.home}/.jruby/gems so that they are cached for all projects using the cucumber plugin. The location of the cache directory can be overridden in the settings.
99
104
100
105
A task is provided to delete the cache directory contents:
101
-
> cucumber-clean-gems
106
+
107
+
cucumber-clean-gems
102
108
103
109
## Customisation ##
104
110
The plugin supports a number of customisations and settings. The following settings can be modified to change the behaviour of the plugin:
@@ -107,6 +113,7 @@ The plugin supports a number of customisations and settings. The following setti
107
113
* cucumberMode = The mode to run cucumber in. Defaults to the value templemore.xsbt.cucumber.Normal
108
114
109
115
The four supported modes are:
116
+
110
117
* templemore.xsbt.cucumber.Normal - Runs cucumber and outputs results to the console
111
118
* templemore.xsbt.cucumber.Developer - Runs cucumber and outputs results, snippets and source to the console
112
119
* templemore.xsbt.cucumber.HtmlReport - Runs cucumber and outputs an html report of the results
0 commit comments