allure-cucumber 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWIyMGRhNDNkZDIzYzc3N2IzNGY2Y2NmOWZhNzU1YjQyMDljNTc2Nw==
4
+ NzdiMWU1NjQ4NzJmNzBlNzQwYjgwZmJlNGVmYjljM2FkYmMxYTVlNQ==
5
5
  data.tar.gz: !binary |-
6
- MDQyNDA1YWZjMjE5NzNjYjlhYTg3ZDlhNDI5ZjdkODY5OGY2NTVjZQ==
6
+ ZjkwNTVkNTQ1OTQ0MTU1NzZlZmIwYTY2ODk5MGY1NjQwZDE3ZTgwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWY2ODhjMWQ2MjAxZWMxZWRkM2JkM2JhNDA4ODY1NTIzMzQwMDNhZDk4NDdi
10
- MjM1YWExNDI5M2I3ZTQ4N2U2MTU2MDc5MjAzNzZiYTIzOTFkNzM3YWJmZWI0
11
- MmYyZGM3ZDcxMTQyZmFkZTI2M2VkNjA2NjgwNzQ5NTY5NzViYmM=
9
+ ZDgwNTk1Njk2ODNmNTc0MGYxM2RlYWIyZTIxMTQwMTJhZWU3ODQ3ZGNjNzIy
10
+ OWQyNWJlZTE4ZTFmNTZlMDI4ODE5NDYwZjJkMDQ3NTY2OWYyYjU5ZDFiMTlm
11
+ NWU4OTM4ZTE3NDkzNzg3YWE0ZTBjYjQzNDAxYWQ5ZjY3ZWYyZTQ=
12
12
  data.tar.gz: !binary |-
13
- ZGJhMmQxZGU2YWFiYTQ3NjFlZjJlMDlhNjhhNDM0MzhiYzUyMjkzODVmYjFh
14
- NmM0NzM2OTNjZTliM2FiZDY0YWY1NGQ1MjZjNTg2ZTIwMGNjMWEzZjE3MTVl
15
- ZmJlMmY2Y2M0MzcxOWVmYWNlOTRjOWUxNzY1MDJlNjY2MjcxMTk=
13
+ NjIxMDYyMTRlYThkMTdhNjFmZTMyM2FhOTc2ZDgxMTU0ZWNmNDAxMWU4ZDgx
14
+ OWQzYjE0YTJhNTVlMjg5ZGE4YjYxZDNmNzk1NThiNjZkY2QwOTA0ZTdmNjRm
15
+ M2ZmYmQzNWQwZWExOTZjNjNiMTYwMWJmMmYyMTM1MzJmNDU1NjA=
data/LICENSE ADDED
@@ -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.
data/README.md CHANGED
@@ -1,35 +1,53 @@
1
- # AllureCucumber
1
+ # Allure Cucumber Adaptor
2
2
 
3
- Allure adaptor for [cucumber](http://cukes.info/). This borrows code heavily from [allure-rspec](https://github.com/allure-framework/allure-rspec) gem.
4
- This is an experimental gem and very much a work in progress.
3
+ This repository contains Allure adaptor for [Cucumber](http://cukes.info/) framework.
5
4
 
6
5
  ## Installation
7
6
 
8
7
  Add this line to your application's Gemfile:
9
8
 
10
- gem 'allure-cucumber'
11
-
9
+ ```ruby
10
+ gem 'allure-cucumber'
11
+ ```
12
12
  And then execute:
13
-
14
- $ bundle
13
+ ```bash
14
+ $ bundle
15
+ ```
15
16
 
16
17
  Or install it yourself as:
18
+ ```bash
19
+ $ gem install allure-cucumber
20
+ ```
17
21
 
18
- $ gem install allure-cucumber
22
+ ## Configuration
23
+
24
+ By default, Allure XML files are stored in `gen/allure-results`. To change this add the following in `features/support/env.rb` file:
25
+
26
+ ```ruby
27
+ AllureCucumber.configure do |c|
28
+ c.output_dir = "/output/dir"
29
+ end
30
+ ```
19
31
 
20
32
  ## Usage
21
33
 
22
- Use `--format AllureCucumber::Formatter` while running cucumber or add it to `cucumber.yml`
34
+ Put the following in your `features/support/env.rb` file:
23
35
 
24
- By default, allure artifacts are stored in `/allure/data`. To change this set `AllureCucumber::Config.output_dir` in your `env.rb` file.
36
+ ```ruby
37
+ require 'allure-cucumber'
38
+ ```
39
+
40
+ Use `--format AllureCucumber::Formatter` while running cucumber or add it to `cucumber.yml`
25
41
 
26
- You can attach files to steps
42
+ You can also [attach screenshots](https://github.com/allure-framework/allure-core/wiki/Glossary#attachment), logs or test data to [steps](https://github.com/allure-framework/allure-core/wiki/Glossary#test-step).
27
43
 
28
44
  ```ruby
29
- # file: features/support/env.rb
45
+ # file: features/support/env.rb
30
46
 
31
- include AllureCucumber::DSL
47
+ include AllureCucumber::DSL
32
48
 
33
- attach_file(title, file)
49
+ attach_file(title, file)
34
50
  ```
35
51
 
52
+ ## How to generate report
53
+ This adapter only generates XML files containing information about tests. See [wiki section](https://github.com/allure-framework/allure-core/wiki#generating-report) on how to generate report.
@@ -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) }
@@ -10,7 +10,7 @@ module AllureCucumber
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
@@ -15,7 +15,7 @@ module AllureCucumber
15
15
 
16
16
  def before_feature(feature)
17
17
  @has_background = false
18
- @tracker.feature_name = feature.name.gsub!(/\n/, " ")
18
+ @tracker.feature_name = feature.name.gsub(/\n/, " ")
19
19
  AllureRubyAdaptorApi::Builder.start_suite(@tracker.feature_name, :severity => :normal)
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module AllureCucumber
2
2
  module Version
3
- STRING = '0.4.0'
3
+ STRING = '0.4.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allure-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Imran Khan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -75,7 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - .gitignore
77
77
  - Gemfile
78
- - LICENSE.txt
78
+ - LICENSE
79
79
  - README.md
80
80
  - Rakefile
81
81
  - allure-cucumber.gemspec
@@ -84,9 +84,9 @@ files:
84
84
  - lib/allure-cucumber/feature_tracker.rb
85
85
  - lib/allure-cucumber/formatter.rb
86
86
  - lib/allure-cucumber/version.rb
87
- homepage: ''
87
+ homepage: http://allure.qatools.ru
88
88
  licenses:
89
- - MIT
89
+ - Apache2
90
90
  metadata: {}
91
91
  post_install_message:
92
92
  rdoc_options: []
@@ -107,5 +107,6 @@ rubyforge_project:
107
107
  rubygems_version: 2.4.1
108
108
  signing_key:
109
109
  specification_version: 4
110
- summary: allure-cucumber-0.4.0
110
+ summary: allure-cucumber-0.4.1
111
111
  test_files: []
112
+ has_rdoc:
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 Imran
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.