Ryan Davis
d24fba6c4d
- Fixed exception sanitization by removing TypeError restriction on rescue.
...
Fixes #921
[git-p4: depot-paths = "//src/minitest/dev/": change = 13507]
2022-08-16 22:10:57 -08:00
Ryan Davis
6bd249b73c
- Nuke ivars if exception fails to marshal twice (eg better_errors). (irphilli)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13457]
2022-06-24 17:00:51 -08:00
Ryan Davis
b58412da97
Fixed a test that's broken if only 1 CPU (eg, my server... oops)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13437]
2022-06-13 01:55:08 -08:00
Ryan Davis
52b9557a24
oops... this part of the exception is only on ruby 3.1+
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13433]
2022-06-11 18:31:36 -08:00
Ryan Davis
31b95ed460
- (Re)Fixed marshalling of exceptions, neutering them in 2 passes.
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13432]
2022-06-11 14:07:27 -08:00
Ryan Davis
2d64718cae
Renamed Minitest::SEED to Minitest.seed
...
+ Calling `srand Minitest.seed` before all shuffles to ensure determinism.
This defends against other tests/libraries calling srand themselves
and messing up minitest's seeded ordering.
[git-p4: depot-paths = "//src/minitest/dev/": change = 13428]
2022-06-06 00:12:08 -08:00
Ryan Davis
4b16c03764
+ Added --show-skips option to show skips at end of run but not require --verbose. (MSP-Greg)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13427]
2022-06-05 21:05:06 -08:00
Ryan Davis
04e5e34077
oops
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13424]
2022-06-05 18:35:15 -08:00
Ryan Davis
9cdb2c6c49
+ Removed minor optimization removing empty suites before run.
...
+ Simplified test randomization (test order will change even with fixed seed).
[git-p4: depot-paths = "//src/minitest/dev/": change = 13422]
2022-06-05 14:35:15 -08:00
Ryan Davis
3ab10c1429
Fixed random test failure because of parallel execution. (mame)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13321]
2022-02-25 14:42:49 -08:00
Ryan Davis
7136b6e62b
- Fixed #skip_until for windows paths. (MSP-Greg)
...
- Fixed a bunch of tests for jruby and windows. (MSP-Greg)
Added CI workflow for GHA. (MSP-Greg)
[git-p4: depot-paths = "//src/minitest/dev/": change = 13286]
2021-12-13 20:35:19 -08:00
Ryan Davis
53cf9ddbaa
Added failing test to show specs can't marshal if they raise. (jeremyevans)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 13280]
2021-12-11 18:11:01 -08:00
Ryan Davis
65664a151d
+ Minitest.filter_backtrace returns original backtrace if filter comes back empty.
...
+ Minitest::BacktraceFilter now returns entire backtrace if $MT_DEBUG set in env.
This should fix https://github.com/seattlerb/minitest/issues/837 and
bypasses the need for a release of
https://github.com/rails/rails/pull/39304 .
[git-p4: depot-paths = "//src/minitest/dev/": change = 12653]
2020-05-15 15:45:30 -08:00
Ryan Davis
381e9654d8
+ Deprecated Minitest::Guard#maglev?
...
+ Deprecated Minitest::Guard#rubinius?
+ Added Minitest::Guard#osx?
Cleaned out the maglev and rubinius conditionals in the tests.
[git-p4: depot-paths = "//src/minitest/dev/": change = 12357]
2019-10-20 03:15:52 -08:00
Ryan Davis
9d8064c8d8
- Fix autorun bug that affects fork exit status in tests. (dylanahsmith/jhawthorn)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 12350]
2019-10-20 00:39:13 -08:00
Ryan Davis
87f33d7dac
Split tests out into test_minitest_assertions.rb
...
Added test/minitest/test_minitest_assertions.rb
[git-p4: depot-paths = "//src/minitest/dev/": change = 12114]
2019-06-09 20:07:33 -08:00
Ryan Davis
1f2b1328f2
+ Extended Assertions#mu_pp to encoding validity output for strings to improve diffs.
...
+ Extended Assertions#mu_pp to output encoding and validity if invalid to improve diffs.
+ Extended Assertions#mu_pp_for_diff to make escaped newlines more obvious in diffs.
[git-p4: depot-paths = "//src/minitest/dev/": change = 11903]
2019-03-28 13:32:52 -08:00
Ryan Davis
b6b3a1b9ac
Failing tests for missing error? method
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11502]
2018-01-26 02:32:13 -08:00
Ryan Davis
5e7d97befe
oops
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11490]
2018-01-02 13:04:55 -08:00
Ryan Davis
00433fc0a4
! Added Minitest::Result and Minitest::Result.from(runnable).
...
! Changed Minitest::Test to subclass Result and refactored methods up.
+ Minitest.run_one_method now checks for instance of Result, not exact same class.
+ Minitest::Test.run returns a Result version of self, not self.
+ Removed Runnable.marshal_dump/load.
+ ProgressReporter#prerecord now explicitly prints klass.name. Allows for fakers.
Moved Runnable.inherited hook to the bottom of minitest.rb
[git-p4: depot-paths = "//src/minitest/dev/": change = 11473]
2017-12-14 14:58:15 -08:00
Ryan Davis
30eaa08482
- Pushed Minitest::Test#time & #time_it up to Runnable.
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11472]
2017-12-12 16:46:53 -08:00
Ryan Davis
c6ba2afd90
- Write aggregated_results directly to the IO object to avoid mixed encoding errors. (tenderlove)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11209]
2017-01-13 15:22:45 -08:00
Ryan Davis
7fe4654064
oops. fixed test for new deprecation output
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11208]
2017-01-13 15:17:21 -08:00
Ryan Davis
affa73bb93
- Made deprecation use warn so -W0 will silence it.
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11170]
2017-01-01 23:38:37 -08:00
Ryan Davis
e65337880c
minitest-proveit strikes again!!! Fixed test_run_with_bogus_reporter to actually check reporter was run
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11153]
2016-12-15 14:54:14 -08:00
Ryan Davis
2f30da74d4
Added warning to tests that if the external encoding doesn't match source encoding then the assert_equal tests will fail and how to avoid that. (snarfmason)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11152]
2016-12-12 19:51:51 -08:00
Ryan Davis
cc4fb3bc4f
- Added a hack/kludge to deal with missing #prerecord on reporters that aren't properly subclassing AbstractReporter (I'm looking at you minitest-reporters)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 11140]
2016-12-01 16:03:42 -08:00
Ryan Davis
174a860e6c
Added FakeNamedTest to metametameta and switched to it. Helps w/ error messages.
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10935]
2016-11-14 17:42:59 -08:00
Ryan Davis
f95ef007ec
! Deprecated ruby 1.8, 1.9, possibly 2.0, assert_send, & old MiniTest namespace.
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10839]
2016-08-17 20:16:34 -08:00
Ryan Davis
3e982c9f60
minitest is OLD code in some areas and has many styles. This cleans some of that up.
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10833]
2016-08-14 16:48:26 -08:00
Ryan Davis
922bc9151a
+ Warn if assert_equal expects a nil. This will fail in minitest 6+. (tenderlove)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10830]
2016-08-05 14:17:25 -08:00
Ryan Davis
0b8bbc7026
- Fix assert_throw rescuing any NameError and ArgumentError. (waldyr)
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10668]
2016-05-17 18:57:33 -08:00
Ryan Davis
1026e5a551
UGH I HATE RUBY 1.9
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10601]
2016-04-25 15:10:18 -08:00
Ryan Davis
8b3330ce4e
1.8 fixes for new encoding stuff
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10600]
2016-04-25 14:11:59 -08:00
Ryan Davis
9bf8e30e9b
renamed test_minitest_unit.rb to test_minitest_test.rb
...
[git-p4: depot-paths = "//src/minitest/dev/": change = 10599]
2016-04-25 14:10:42 -08:00