minitest 5.12.1 → 5.14.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,9 +75,13 @@ class TestMinitestUnit < MetaMetaMetaTestCase
75
75
  assert_equal ex, fu
76
76
  end
77
77
 
78
- # def test_default_runner_is_minitest_unit
79
- # assert_instance_of Minitest::Unit, Minitest::Unit.runner
80
- # end
78
+ def test_filter_backtrace__empty
79
+ with_empty_backtrace_filter do
80
+ bt = %w[first second third]
81
+ fu = Minitest.filter_backtrace bt.dup
82
+ assert_equal bt, fu
83
+ end
84
+ end
81
85
 
82
86
  def test_infectious_binary_encoding
83
87
  @tu = Class.new FakeNamedTest do
@@ -582,8 +586,6 @@ class TestMinitestRunner < MetaMetaMetaTestCase
582
586
  end
583
587
 
584
588
  def test_run_parallel
585
- skip "I don't have ParallelEach debugged yet" if maglev?
586
-
587
589
  test_count = 2
588
590
  test_latch = Latch.new test_count
589
591
  wait_latch = Latch.new test_count
@@ -857,12 +859,7 @@ class TestMinitestUnitTestCase < Minitest::Test
857
859
  end
858
860
 
859
861
  srand 42
860
- expected = case
861
- when maglev? then
862
- %w[test_test2 test_test3 test_test1]
863
- else
864
- %w[test_test2 test_test1 test_test3]
865
- end
862
+ expected = %w[test_test2 test_test1 test_test3]
866
863
  assert_equal expected, sample_test_case.runnable_methods
867
864
  end
868
865
 
@@ -901,6 +898,20 @@ class TestMinitestUnitTestCase < Minitest::Test
901
898
  shitty_test_case.i_suck_and_my_tests_are_order_dependent!
902
899
  end
903
900
  end
901
+
902
+ def test_autorun_does_not_affect_fork_success_status
903
+ @assertion_count = 0
904
+ skip "windows doesn't have skip" unless Process.respond_to?(:fork)
905
+ Process.waitpid(fork {})
906
+ assert_equal true, $?.success?
907
+ end
908
+
909
+ def test_autorun_does_not_affect_fork_exit_status
910
+ @assertion_count = 0
911
+ skip "windows doesn't have skip" unless Process.respond_to?(:fork)
912
+ Process.waitpid(fork { exit 42 })
913
+ assert_equal 42, $?.exitstatus
914
+ end
904
915
  end
905
916
 
906
917
  class TestMinitestGuard < Minitest::Test
@@ -917,8 +928,26 @@ class TestMinitestGuard < Minitest::Test
917
928
  end
918
929
 
919
930
  def test_rubinius_eh
920
- assert self.class.rubinius? "rbx"
921
- assert self.rubinius? "rbx"
931
+ assert_output "", /DEPRECATED/ do
932
+ assert self.class.rubinius? "rbx"
933
+ end
934
+ assert_output "", /DEPRECATED/ do
935
+ assert self.rubinius? "rbx"
936
+ end
937
+ end
938
+
939
+ def test_maglev_eh
940
+ assert_output "", /DEPRECATED/ do
941
+ assert self.class.maglev? "maglev"
942
+ end
943
+ assert_output "", /DEPRECATED/ do
944
+ assert self.maglev? "maglev"
945
+ end
946
+ end
947
+
948
+ def test_osx_eh
949
+ assert self.class.osx? "darwin"
950
+ assert self.osx? "darwin"
922
951
  end
923
952
 
924
953
  def test_windows_eh
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.12.1
4
+ version: 5.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE4MTIwNDIxMzAxNFoXDTE5MTIwNDIxMzAxNFowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTE5MTIxMzAwMDIwNFoXDTIwMTIxMjAwMDIwNFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8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3xoN
30
+ h7iEjga8iM1LbZUfiISZ+WrB
31
31
  -----END CERTIFICATE-----
32
- date: 2019-09-28 00:00:00.000000000 Z
32
+ date: 2020-09-01 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
@@ -57,14 +57,14 @@ dependencies:
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.18'
60
+ version: '3.22'
61
61
  type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '3.18'
67
+ version: '3.22'
68
68
  description: |-
69
69
  minitest provides a complete suite of testing facilities supporting
70
70
  TDD, BDD, mocking, and benchmarking.
@@ -158,7 +158,9 @@ files:
158
158
  homepage: https://github.com/seattlerb/minitest
159
159
  licenses:
160
160
  - MIT
161
- metadata: {}
161
+ metadata:
162
+ homepage_uri: https://github.com/seattlerb/minitest
163
+ bug_tracker_uri: https://github.com/seattlerb/minitest/issues
162
164
  post_install_message:
163
165
  rdoc_options:
164
166
  - "--main"
@@ -167,16 +169,19 @@ require_paths:
167
169
  - lib
168
170
  required_ruby_version: !ruby/object:Gem::Requirement
169
171
  requirements:
170
- - - "~>"
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '2.2'
175
+ - - "<"
171
176
  - !ruby/object:Gem::Version
172
- version: '2.3'
177
+ version: '3.1'
173
178
  required_rubygems_version: !ruby/object:Gem::Requirement
174
179
  requirements:
175
180
  - - ">="
176
181
  - !ruby/object:Gem::Version
177
182
  version: '0'
178
183
  requirements: []
179
- rubygems_version: 3.0.6
184
+ rubygems_version: 3.1.4
180
185
  signing_key:
181
186
  specification_version: 4
182
187
  summary: minitest provides a complete suite of testing facilities supporting TDD,
metadata.gz.sig CHANGED
Binary file