minitest-reporters 1.3.3 → 1.3.4

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
  SHA256:
3
- metadata.gz: fd189c42b4c7adcec48a0ce3db5a5abe59dd6d766ef6b9d69b7bca10a305a8ba
4
- data.tar.gz: 63c9745d9d6a1de4492434dea58ecf37b78ce3f5df2bdc0dc159915914dc2235
3
+ metadata.gz: 925053b10dcfc1b7b98ff321feb95068fcdaac0b4b37ccdb0ef2b578448f6aa0
4
+ data.tar.gz: 2572035121add92977b65973f669ba8956e965fb334cde5d5e9f72f95337b8e5
5
5
  SHA512:
6
- metadata.gz: 676d1065ac7070eb24a1824f8fc914e243281538ad0c8c7c6db24cb5529e395e1992f685562f061628e50ee394d0ce47f09e1f54d9350034be2f3130765288a1
7
- data.tar.gz: e6c1ecb07353173d26b3546af1591ec63d1684d3bb66c4740b3b52172ee8ec701e42a831cae19cd2d7263401d61b5e7d96bbbcbe5087b21dbbfb7fccb4410c0a
6
+ metadata.gz: 2cd9b247f181542bba6e2c634c487ca9bd9248e278d1e99ff87c8b47f3331cfec759e8796fab66c444536b3cd971f8817ca2ef76a21eee4aa7f630263ec3a2f2
7
+ data.tar.gz: a092aca7c6a8badc5dd1ef75d6896499e6a80a7f0712564f328d16c48b4073ad82ffce744eeac5c292211f9c101c56af8beea4765bd439e49cbec47b8a625b08
@@ -1,4 +1,8 @@
1
- ### [dev](https://github.com/kern/minitest-reporters/compare/v1.3.3...master)
1
+ ### [dev](https://github.com/kern/minitest-reporters/compare/v1.3.4...master)
2
+
3
+ ### [1.3.4](https://github.com/kern/minitest-reporters/compare/v1.3.3...v1.3.4)
4
+
5
+ * fixed the way DefaultReporter reports slowest suites [#270](https://github.com/kern/minitest-reporters/issues/270)
2
6
 
3
7
  ### [1.3.3](https://github.com/kern/minitest-reporters/compare/v1.3.2...v1.3.3)
4
8
 
@@ -113,7 +113,7 @@ module Minitest
113
113
  puts
114
114
 
115
115
  slow_tests.each do |test|
116
- puts "%.6fs %s" % [test.time, "#{test.name}##{test_class(test)}"]
116
+ puts "%.6fs %s#%s" % [test.time, test.name, test_class(test)]
117
117
  end
118
118
  end
119
119
 
@@ -125,7 +125,7 @@ module Minitest
125
125
  puts
126
126
 
127
127
  slow_suites.each do |slow_suite|
128
- puts "%.6fs %s" % [slow_suite[1], test_class(slow_suite[0])]
128
+ puts "%.6fs %s" % [slow_suite[1], slow_suite[0]]
129
129
  end
130
130
  end
131
131
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.3.3'.freeze
3
+ VERSION = '1.3.4'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
1
  require_relative '../../test_helper'
2
- require "ostruct"
3
2
 
4
3
  module MinitestReportersTest
5
4
  class MeanTimeReporterUnitTest < Minitest::Test
@@ -106,14 +105,10 @@ module MinitestReportersTest
106
105
  end
107
106
 
108
107
  def configure_report_paths
109
- previous_runs_file = Tempfile.new('minitest-mean-time-previous-runs')
110
- previous_runs_file.close
111
- @previous_run_path = previous_runs_file.path
112
- previous_runs_file.delete
113
- report_file = Tempfile.new('minitest-mean-time-report')
114
- report_file.close
115
- @report_file_path = report_file.path
116
- report_file.delete
108
+ @previous_run_path = File.expand_path("../minitest-mean-time-previous-runs", File.realpath(__FILE__))
109
+ File.delete(@previous_run_path) if File.exist?(@previous_run_path)
110
+ @report_file_path = File.expand_path("../minitest-mean-time-report", File.realpath(__FILE__))
111
+ File.delete(@report_file_path) if File.exist?(@report_file_path)
117
112
  end
118
113
 
119
114
  def generate_report(sort_column, time_name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2018-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest