This repository was archived by the owner on Oct 16, 2019. It is now read-only.
File tree 5 files changed +37
-30
lines changed
5 files changed +37
-30
lines changed Original file line number Diff line number Diff line change
1
+ Copyright (c) 2014 Imran Khan
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ This repository contains Allure adaptor for [Cucumber](http://cukes.info/) frame
6
6
7
7
Add this line to your application's Gemfile:
8
8
9
- gem 'allure-cucumber'
9
+ ``` ruby
10
+ gem ' allure-cucumber'
11
+ ```
10
12
11
13
And then execute:
12
14
@@ -18,17 +20,31 @@ Or install it yourself as:
18
20
19
21
## Usage
20
22
23
+ Put the following in your ` features/support/env.rb ` file
24
+
25
+ ``` ruby
26
+ require ' allure-cucumber'
27
+ ```
28
+
21
29
Use ` --format AllureCucumber::Formatter ` while running cucumber or add it to ` cucumber.yml `
22
30
23
- By default, Allure artifacts are stored in ` /allure/data ` . To change this set ` AllureCucumber::Config.output_dir ` in your ` env.rb ` file.
31
+ ## Advanced options
32
+
33
+ By default, Allure artifacts are stored in ` gen/allure-results ` . To change this add the following in ` features/support/env.rb ` file
34
+
35
+ ``` ruby
36
+ AllureCucumber .configure do |c |
37
+ c.output_dir = " /output/dir"
38
+ end
39
+ ```
24
40
25
41
You can also attach screenshots, logs or test data to steps
26
42
27
43
``` ruby
28
- # file: features/support/env.rb
44
+ # file: features/support/env.rb
29
45
30
- include AllureCucumber ::DSL
46
+ include AllureCucumber ::DSL
31
47
32
- attach_file(title, file)
48
+ attach_file(title, file)
33
49
```
34
50
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
spec . email = [ "9ikhan@gmail.com" ]
9
9
spec . summary = "allure-cucumber-#{ AllureCucumber ::Version ::STRING } "
10
10
spec . description = %q{Adaptor to use Allure framework with cucumber}
11
- spec . homepage = ""
12
- spec . license = "MIT "
11
+ spec . homepage = "http://allure.qatools.ru "
12
+ spec . license = "Apache2 "
13
13
14
14
spec . files = `git ls-files -z` . split ( "\x0 " )
15
15
spec . executables = spec . files . grep ( %r{^bin/} ) { |f | File . basename ( f ) }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module Config
10
10
class << self
11
11
attr_accessor :output_dir
12
12
13
- DEFAULT_OUTPUT_DIR = 'allure/data '
13
+ DEFAULT_OUTPUT_DIR = 'gen/allure-results '
14
14
15
15
def output_dir
16
16
@output_dir || DEFAULT_OUTPUT_DIR
You can’t perform that action at this time.
0 commit comments