minitest-reporters 0.14.9 → 0.14.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,11 +12,14 @@ module MiniTest
12
12
  class JUnitReporter
13
13
  include Reporter
14
14
 
15
- def initialize(reports_dir = "test/reports")
16
- @reports_path = File.join(Dir.getwd, reports_dir)
17
- puts "Emptying #{@reports_path}"
18
- FileUtils.remove_dir(@reports_path) if File.exists?(@reports_path)
19
- FileUtils.mkdir_p(@reports_path)
15
+ def initialize(reports_dir = "test/reports", empty = true)
16
+ @reports_path = File.absolute_path(reports_dir)
17
+
18
+ if empty
19
+ puts "Emptying #{@reports_path}"
20
+ FileUtils.remove_dir(@reports_path) if File.exists?(@reports_path)
21
+ FileUtils.mkdir_p(@reports_path)
22
+ end
20
23
  end
21
24
 
22
25
  def after_suites(suites, type)
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Reporters
3
- VERSION = "0.14.9"
3
+ VERSION = "0.14.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.9
4
+ version: 0.14.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: -734840371492199705
167
+ hash: 3192420909948519299
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -734840371492199705
176
+ hash: 3192420909948519299
177
177
  requirements: []
178
178
  rubyforge_project: minitest-reporters
179
179
  rubygems_version: 1.8.24