Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c90c1e6

Browse files
author
Imran
committedAug 21, 2014
Closes #3, closes #4 and README updates
1 parent 42e3b75 commit c90c1e6

File tree

5 files changed

+37
-30
lines changed

5 files changed

+37
-30
lines changed
 

‎LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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.

‎LICENSE.txt

-22
This file was deleted.

‎README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ This repository contains Allure adaptor for [Cucumber](http://cukes.info/) frame
66

77
Add this line to your application's Gemfile:
88

9-
gem 'allure-cucumber'
9+
```ruby
10+
gem 'allure-cucumber'
11+
```
1012

1113
And then execute:
1214

@@ -18,17 +20,31 @@ Or install it yourself as:
1820

1921
## Usage
2022

23+
Put the following in your `features/support/env.rb` file
24+
25+
```ruby
26+
require 'allure-cucumber'
27+
```
28+
2129
Use `--format AllureCucumber::Formatter` while running cucumber or add it to `cucumber.yml`
2230

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+
```
2440

2541
You can also attach screenshots, logs or test data to steps
2642

2743
```ruby
28-
# file: features/support/env.rb
44+
# file: features/support/env.rb
2945

30-
include AllureCucumber::DSL
46+
include AllureCucumber::DSL
3147

32-
attach_file(title, file)
48+
attach_file(title, file)
3349
```
3450

‎allure-cucumber.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
88
spec.email = ["9ikhan@gmail.com"]
99
spec.summary = "allure-cucumber-#{AllureCucumber::Version::STRING}"
1010
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"
1313

1414
spec.files = `git ls-files -z`.split("\x0")
1515
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }

‎lib/allure-cucumber.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Config
1010
class << self
1111
attr_accessor :output_dir
1212

13-
DEFAULT_OUTPUT_DIR = 'allure/data'
13+
DEFAULT_OUTPUT_DIR = 'gen/allure-results'
1414

1515
def output_dir
1616
@output_dir || DEFAULT_OUTPUT_DIR

0 commit comments

Comments
 (0)
This repository has been archived.