allure-cucumber 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 411be242f6415a6253ee7cc5ad181e2195534b10
4
- data.tar.gz: b5315f823ff67eff8a5791fdbdeda0d010385056
3
+ metadata.gz: fd7ef657ee49740eec46661149335ab7cb38d93d
4
+ data.tar.gz: 0ddf2bcabccebd24432a25beff74c2939fbe98a4
5
5
  SHA512:
6
- metadata.gz: 2468b36802c17ec7b13c92266e23cb4b9406a0530c109a25b5a9c08a7057df7e7f83cfe891399194d722f27cf955410072e617f0e040bcce3c7c73dd2e1e6c2f
7
- data.tar.gz: 49753375752b0113a34c7867e8003922ed4eef7a71d6443db9bc1219874bcadaf5741d6f57aec9e0c7396fa4c5380c47841ce7f06270295f1298bb787440422e
6
+ metadata.gz: a7c772d89cdf7b69559757015f54db2e354d0b059ad8b53e2ce4f15f347a7fe1ff9c0a4fb1ff9f53b029aab70c5f62ce6de79fb5e042bc622fe0dbd80b24e4c6
7
+ data.tar.gz: 8687e524817210956d584482dfadd84fdd7b52557610296f8049d442fdc401318dc011c55c737a27a21f31397c45a6ed3a7a8c1b5bf62fccb94ba6157605e05a
data/README.md CHANGED
@@ -29,6 +29,14 @@ AllureCucumber.configure do |c|
29
29
  end
30
30
  ```
31
31
 
32
+ By default, the Allure XML files from earlier runs are deleted at the start of new run. This can be disabled by:
33
+
34
+ ```ruby
35
+ AllureCucumber.configure do |c|
36
+ c.clean_dir = false
37
+ end
38
+ ```
39
+
32
40
  ## Usage
33
41
 
34
42
  Put the following in your `features/support/env.rb` file:
@@ -8,7 +8,7 @@ module AllureCucumber
8
8
 
9
9
  module Config
10
10
  class << self
11
- attr_accessor :output_dir
11
+ attr_accessor :output_dir, :clean_dir
12
12
 
13
13
  DEFAULT_OUTPUT_DIR = 'gen/allure-results'
14
14
 
@@ -12,8 +12,8 @@ module AllureCucumber
12
12
  POSSIBLE_STATUSES = ['passed', 'failed', 'pending', 'skipped', 'undefined']
13
13
 
14
14
  def initialize(step_mother, io, options)
15
- dir = Pathname.new(AllureCucumber::Config.output_dir)
16
- FileUtils.rm_rf(dir)
15
+ dir = Pathname.new(AllureCucumber::Config.output_dir)
16
+ FileUtils.rm_rf(dir) unless AllureCucumber::Config.clean_dir == false
17
17
  FileUtils.mkdir_p(dir)
18
18
  @tracker = AllureCucumber::FeatureTracker.create
19
19
  @deferred_before_test_steps = []
@@ -1,5 +1,5 @@
1
1
  module AllureCucumber
2
2
  module Version
3
- STRING = '0.5.2'
3
+ STRING = '0.5.3'
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.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Imran Khan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -107,5 +107,5 @@ rubyforge_project:
107
107
  rubygems_version: 2.4.8
108
108
  signing_key:
109
109
  specification_version: 4
110
- summary: allure-cucumber-0.5.2
110
+ summary: allure-cucumber-0.5.3
111
111
  test_files: []