minitest-reporters 1.4.2 → 1.4.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
  SHA256:
3
- metadata.gz: 688c99413182036bb0617018885e94e5a2b74d6331033eae5d4cf3040232bfd0
4
- data.tar.gz: c9d478c295c0477045831a36742dabef6c9824932b16b93e4cc4c7e5458616bd
3
+ metadata.gz: 120b4ce6a1a42386c94c34efee2b65fe1964e75d2532553850f39964a7cbe832
4
+ data.tar.gz: 7ea83aff68338ad236208a6622b4f3b746cbf330d3189897a4edeae064d05a01
5
5
  SHA512:
6
- metadata.gz: 471e0b83ba861847fbed7e4eacc14effb7d40804ee525fd74a1c1d00563eb37e2cf109c539b92c68af26af39f073b14381c0de368b765cda22ee52535411da26
7
- data.tar.gz: ac3ae6cc9abaa454c9b6068704b55180f73fc5d085988ffa0ac70db46df0a1f7db9b6b41c7ccd5bb1192b8fc65b480a011765287d840605425e3821839320dcd
6
+ metadata.gz: a1062e3fac40dc4ad46aa3ee6be1f9996bd9b10877b1610083e40372adc6548396d9b7c83edd3c9034447d244e78c463669754498d7b5dd2d99b8d169deb1eb6
7
+ data.tar.gz: 0c99ed679c71e933e858faa088fa452351ebc0a1f18663a865e1c59741ce99b9d9a55c05b27fb4bd8a2b184da789c3e20f83e13d1a7cdcb049bd7ec45fcf1c6a
@@ -1,38 +1,45 @@
1
- ### [dev](https://github.com/kern/minitest-reporters/compare/v1.4.2...master)
1
+ ### [dev](https://github.com/kern/minitest-reporters/compare/v1.4.3...master)
2
2
 
3
- ### [1.4.2](https://github.com/kern/minitest-reporters/compare/v1.4.1...v1.4.2)
3
+ ### [1.4.3](https://github.com/kern/minitest-reporters/compare/v1.4.3...v1.4.2)
4
+
5
+ * fixed rare compatability issue between JUnitReporter and older versions of Minitest [#272](https://github.com/minitest-reporters/minitest-reporters/pull/272) contributed by [chakrit](https://github.com/chakrit)
6
+ * fixed JUnitReporter to use a relative file path if a file path is absolute [#305](https://github.com/minitest-reporters/minitest-reporters/issues/305)
7
+ * fixed MeanTimeReporter to reset by deleting previous run file [#296](https://github.com/kern/minitest-reporters/pull/296) contributed by [AnythonyClark](https://github.com/AnthonyClark)
8
+ * removed debug output from ProgressReporter [#301](https://github.com/kern/minitest-reporters/pull/301) contributed by [wvanbergen](https://github.com/wvanbergen)
9
+
10
+ ### [1.4.2](https://github.com/kern/minitest-reporters/compare/v1.4.1...v1.4.2) (2019-10-26)
4
11
 
5
12
  * fixed DelegateReporter to delegate prerecord() [#294](https://github.com/kern/minitest-reporters/pull/294) contributed by [mame](https://github.com/mame)
6
13
 
7
- ### [1.4.1](https://github.com/kern/minitest-reporters/compare/v1.4....v1.4.1)
14
+ ### [1.4.1](https://github.com/kern/minitest-reporters/compare/v1.4....v1.4.1) (2019-10-10)
8
15
 
9
16
  * fixed Time.current replaced with Time.now in HTML reporter's remplate [#293](https://github.com/kern/minitest-reporters/issues/293)
10
17
 
11
- ### [1.4.0](https://github.com/kern/minitest-reporters/compare/v1.4.0.beta1...v1.4.0)
18
+ ### [1.4.0](https://github.com/kern/minitest-reporters/compare/v1.4.0.beta1...v1.4.0) (2019-10-06)
12
19
 
13
20
  * travis updated to include ruby 2.6 ([#292](https://github.com/kern/minitest-reporters/pull/292) contributed by [pvalena](https://github.com/pvalena))
14
21
  * location option added to DefaultReporter [#288](https://github.com/kern/minitest-reporters/pull/288) contributed by [bmo](https://github.com/bmo)
15
22
  * Date and time added to HTML report [#287](https://github.com/kern/minitest-reporters/pull/287) contributed by [cderche](https://github.com/cderche)
16
23
 
17
- ### [1.4.0.beta1](https://github.com/kern/minitest-reporters/compare/v1.3.8...v1.4.0.beta1)
24
+ ### [1.4.0.beta1](https://github.com/kern/minitest-reporters/compare/v1.3.8...v1.4.0.beta1) (2019-08-28)
18
25
 
19
26
  * JUnitReporter changed to be compatible with the spec [#286](https://github.com/kern/minitest-reporters/pull/286) contributed by [dylanahsmith](https://github.com/dylanahsmith)
20
27
 
21
- ### [1.3.8](https://github.com/kern/minitest-reporters/compare/v1.3.7...v1.3.8)
28
+ ### [1.3.8](https://github.com/kern/minitest-reporters/compare/v1.3.7...v1.3.8) (2019-08-14)
22
29
 
23
30
  * Fixed default ProgressReporter regression from [#278](https://github.com/kern/minitest-reporters/pull/278); fix [#284](https://github.com/kern/minitest-reporters/pull/284) contributed by [bobmaerten](https://github.com/bobmaerten)
24
31
 
25
- ### [1.3.7](https://github.com/kern/minitest-reporters/compare/v1.3.6...v1.3.7)
32
+ ### [1.3.7](https://github.com/kern/minitest-reporters/compare/v1.3.6...v1.3.7) (2019-08-14)
26
33
 
27
34
  * added ability to specify output dir of JUnitReporter through ENV [#277](https://github.com/kern/minitest-reporters/pull/277) countributed by [KevinSjoberg](https://github.com/KevinSjoberg)
28
35
  * Added verbose functionality to ProgressReporter [#278](https://github.com/kern/minitest-reporters/pull/278) contributed by [senhalil](https://github.com/senhalil)
29
36
 
30
- ### [1.3.6](https://github.com/kern/minitest-reporters/compare/v1.3.5...v1.3.6)
37
+ ### [1.3.6](https://github.com/kern/minitest-reporters/compare/v1.3.5...v1.3.6) (2019-01-16)
31
38
 
32
39
  * fixed possible null pointer in #after_suite [#274](https://github.com/kern/minitest-reporters/pull/274)
33
40
  contributed by [casperisfine](https://github.com/casperisfine)
34
41
 
35
- ### [1.3.5](https://github.com/kern/minitest-reporters/compare/v1.3.5.beta1...v1.3.5)
42
+ ### [1.3.5](https://github.com/kern/minitest-reporters/compare/v1.3.5.beta1...v1.3.5) (2018-09-30)
36
43
 
37
44
  ### [1.3.5.beta1](https://github.com/kern/minitest-reporters/compare/v1.3.4...v1.3.5.beta1)
38
45
 
@@ -116,5 +123,3 @@
116
123
  ## [1.1.15](https://github.com/kern/minitest-reporters/compare/v1.1.14...v1.1.15)
117
124
 
118
125
  * Fixed problem with handling SIGINFO [#231](https://github.com/kern/minitest-reporters/pull/231) (contributed by [joshpencheon](https://github.com/joshpencheon))
119
-
120
-
data/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
 
4
4
  # minitest-reporters - create customizable Minitest output formats
5
5
 
6
- [![Join the chat at https://gitter.im/kern/minitest-reporters](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/kern/minitest-reporters?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
6
  [![Gem Version](https://badge.fury.io/rb/minitest-reporters.svg)][gem]
8
7
  [![Build Status](https://secure.travis-ci.org/kern/minitest-reporters.png)][travis]
9
8
  [![Windows build status](https://ci.appveyor.com/api/projects/status/3pugsxatwcldgyjd/branch/master?svg=true)](https://ci.appveyor.com/project/os97673/minitest-reporters/branch/master)
@@ -46,7 +45,7 @@ To override this behavior, you may set the ENV variable MINITEST_REPORTER:
46
45
  export MINITEST_REPORTER=JUnitReporter
47
46
  ```
48
47
 
49
- Detection of those systems is based on presence of certain ENV variables and are evaulated in the following order:
48
+ Detection of those systems is based on presence of certain ENV variables and are evaluated in the following order:
50
49
 
51
50
  ```
52
51
  MINITEST_REPORTER => use reporter indicated in env variable
@@ -117,6 +116,10 @@ The third parameter to `.use!`, in this case `Minitest.backtrace_filter`, should
117
116
  filter object. In the above example, you're telling minitest-reporters to use the filter
118
117
  that Rails has already set.
119
118
 
119
+ **Test Anything Protocol (TAP)**
120
+
121
+ The [Test Anything Protocol](https://testanything.org) is a specification for outputting test results in an implementation-agnostic manner so that various tools can read the output. If you need to produce TAP-compliant output for Minitest results, see this [blog post](https://dev.to/davidwessman/rails-minitest-results-output-in-tap-format-for-heroku-ci-46d3) and [gist](https://gist.github.com/davidwessman/09a13840a8a80080e3842ac3051714c7) by [@davidwessman](https://github.com/davidwessman).
122
+
120
123
  ## Note on Patches/Pull Requests ##
121
124
 
122
125
  * Fork the project.
@@ -61,14 +61,18 @@ module Minitest
61
61
  def get_relative_path(result)
62
62
  file_path = Pathname.new(get_source_location(result).first)
63
63
  base_path = Pathname.new(@base_path)
64
- file_path.relative_path_from(base_path) if file_path.absolute?
65
- file_path
64
+
65
+ if file_path.absolute?
66
+ file_path.relative_path_from(base_path)
67
+ else
68
+ file_path
69
+ end
66
70
  end
67
71
 
68
72
  private
69
73
 
70
74
  def get_source_location(result)
71
- if result.respond_to? :klass
75
+ if result.respond_to? :source_location
72
76
  result.source_location
73
77
  else
74
78
  result.method(result.name).source_location
@@ -100,7 +100,7 @@ module Minitest
100
100
  #
101
101
  # @return [void]
102
102
  def reset_statistics!
103
- File.open(previous_runs_filename, 'w+') { |f| f.write('') }
103
+ File.delete(previous_runs_filename) if File.exist?(previous_runs_filename)
104
104
  end
105
105
 
106
106
  protected
@@ -87,8 +87,7 @@ module Minitest
87
87
  end
88
88
 
89
89
  def print_test_with_time(test)
90
- puts [test.name, test_class(test), total_time].inspect
91
- print(" %s#%s (%.2fs)" % [test.name, test_class(test), total_time])
90
+ print(" %s#%s (%.2fs)" % [test_class(test), test.name, total_time])
92
91
  end
93
92
 
94
93
  def color
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.4.2'.freeze
3
+ VERSION = '1.4.3'.freeze
4
4
  end
5
5
  end
@@ -6,17 +6,17 @@ module MinitestReportersTest
6
6
  fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
7
7
  test_filename = File.join(fixtures_directory, 'progress_test.rb')
8
8
  output = `#{ruby_executable} #{test_filename} 2>&1`
9
- assert_match 'ERROR["test_error"', output, 'Errors should be displayed'
10
- assert_match 'FAIL["test_failure"', output, 'Failures should be displayed'
11
- assert_match 'SKIP["test_skip', output, 'Skipped tests should be displayed'
9
+ assert_match 'test_error', output, 'Errors should be displayed'
10
+ assert_match 'test_failure', output, 'Failures should be displayed'
11
+ assert_match 'test_skip', output, 'Skipped tests should be displayed'
12
12
  end
13
13
  def test_skipped_tests_are_not_displayed
14
14
  fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
15
15
  test_filename = File.join(fixtures_directory, 'progress_detailed_skip_test.rb')
16
16
  output = `#{ruby_executable} #{test_filename} 2>&1`
17
- assert_match 'ERROR["test_error"', output, 'Errors should be displayed'
18
- assert_match 'FAIL["test_failure"', output, 'Failures should be displayed'
19
- refute_match 'SKIP["test_skip', output, 'Skipped tests should not be displayed'
17
+ assert_match 'test_error', output, 'Errors should be displayed'
18
+ assert_match 'test_failure', output, 'Failures should be displayed'
19
+ refute_match 'test_skip', output, 'Skipped tests should not be displayed'
20
20
  end
21
21
  def test_progress_works_with_filter_and_specs
22
22
  fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
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.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-26 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -170,7 +170,7 @@ homepage: https://github.com/CapnKernul/minitest-reporters
170
170
  licenses:
171
171
  - MIT
172
172
  metadata: {}
173
- post_install_message:
173
+ post_install_message:
174
174
  rdoc_options: []
175
175
  require_paths:
176
176
  - lib
@@ -185,8 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 3.0.3
189
- signing_key:
188
+ rubygems_version: 3.1.4
189
+ signing_key:
190
190
  specification_version: 4
191
191
  summary: Create customizable Minitest output formats
192
192
  test_files: