Commit Graph

20 Commits

Author SHA1 Message Date
Ryan Davis 73692f9202 ! Added Minitest::TestTask.
[git-p4: depot-paths = "//src/minitest/dev/": change = 13430]
2022-06-07 20:01:15 -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 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
Ryan Davis ed3107e55e Renamed README.txt to README.rdoc to quell all the github-centric whinging. Literally my _lowest_ priority ever. Ugh.
[git-p4: depot-paths = "//src/minitest/dev/": change = 10137]
2015-04-13 14:05:00 -08:00
Ryan Davis 34760e3b26 + Use a Queue for scheduling parallel tests. (tenderlove)
[git-p4: depot-paths = "//src/minitest/dev/": change = 9032]
2013-11-15 13:36:21 -08:00
Ryan Davis fcb36a1733 + Minitest.init_plugins passes down options.
+ Minitest.load_plugins only loads once.
Moved most of minitest/pride into minitest/pride_plugin.
Moved pride cmdline option handler into pride_plugin.rb
minitest/pride now just activates pride.
- Fixed minitest/pride to work with rake test loader again. (tmiller)

[git-p4: depot-paths = "//src/minitest/dev/": change = 8475]
2013-05-01 02:46:01 -08:00
Ryan Davis 95dc6d1da0 Added tests for reporter
[git-p4: depot-paths = "//src/minitest/dev/": change = 8472]
2013-04-30 13:54:45 -08:00
Ryan Davis 9a57c520ce Oh god... here we go.
Minitest 5:

Deaths in the family:

! MiniTest.runner is dead. No more manager objects.
! MiniTest::Unit#record is dead. Use a Reporter instance instead.
! MiniTest::Unit._run_* is dead. Runnable things are responsible for their own runs.
! MiniTest::Unit.output is dead. No more centralized IO.

Major (oft incompatible) changes:

! Renamed MiniTest to Minitest. Your pinkies will thank me.
! Removed MiniTest::Unit entirely. No more manager objects.
! Added Minitest::Runnable. Everything minitest can run subclasses this.
! Renamed MiniTest::Unit::TestCase to Minitest::Test (subclassing Runnable).
! Added Minitest::Benchmark.
  ! Your benchmarks need to move to their own subclass.
  ! Benchmarks using the spec DSL have to have "Bench" somewhere in their describe.
! MiniTest::Unit.after_tests moved to Minitest.after_tests
! MiniTest::Unit.autorun is now Minitest.autorun. Just require minitest/autorun pls.
! Removed ParallelEach#grep since it isn't used anywhere.

Minor moves:

+ Moved Assertions module to minitest/assertions.rb
+ Moved Expectations module to minitest/expectations.rb
+ Moved Test to minitest/test.rb
+ Moved everything else in minitest/unit.rb to minitest.rb
+ minitest/unit.rb is now just a small (user-test only) compatibility layer.

Additions:

+ Added a plugin system that can extend command-line options.
+ Added Minitest.extensions.
+ Added Minitest.reporter (only available during startup).
+ Added Minitest.run(args). This is the very top of any Minitest run.
+ Added Minitest::Reporter. Everything minitest can report goes through here.
  + Minitest.reporter is a composite so you can add your own.
+ Added Minitest::CompositeReporter. Much easier to extend with your own reporters.
+ Added UnexpectedError, an Assertion subclass, to wrap up errors.
+ Minitest::Test#run is now freakin' beautiful. 47 -> 17 loc

Other:

+ Removed Object.infect_with_assertions (it was already dead code).
+ Runnables are responsible for knowing their result_code (eg "." or "F").

[git-p4: depot-paths = "//src/minitest/dev/": change = 8451]
2013-04-24 17:38:14 -08:00
Ryan Davis c9b683bc0f ! _run_suites now runs suites in parallel if they opt-in.
! Added support for :parallel test_order to run test cases in parallel.
! Added minitest/hell - run all your tests through the ringer!
+ Added TestCase#synchronize
+ Added TestCase.parallelize_me!
Wrapped up or rearranged minitest tests to handle being run in parallel as much as possible.

[git-p4: depot-paths = "//src/minitest/dev/": change = 7861]
2012-10-24 18:59:04 -08:00
Ryan Davis 90dbc50985 I suck
[git-p4: depot-paths = "//src/minitest/dev/": change = 7435]
2012-05-08 19:36:37 -08:00
Ryan Davis 219e5d005d + Split minitest/excludes.rb out to its own gem
[git-p4: depot-paths = "//src/minitest/dev/": change = 6831]
2011-12-20 16:22:54 -08:00
Ryan Davis f73e2aa9db argh
[git-p4: depot-paths = "//src/minitest/dev/": change = 6795]
2011-12-07 17:47:06 -08:00
Ryan Davis fa13094efa + Added TestCase.exclude and load_excludes for programmatic filtering of tests.
Refactored unit tests into metametameta to share assert_report, setup, and teardown
[git-p4: depot-paths = "//src/minitest/dev/": change = 6785]
2011-12-07 13:10:34 -08:00
Ryan Davis f61f7dcf04 + Moved minitest hoe-plugin from hoe-seattlerb. (erikh)
[git-p4: depot-paths = "//src/minitest/dev/": change = 6271]
2011-05-29 22:30:04 -08:00
Ryan Davis c2ffbd2162 updated
[git-p4: depot-paths = "//src/minitest/dev/": change = 5941]
2010-11-04 15:13:18 -08:00
Ryan Davis 91aa9bde12 Renamed test_mini_test.rb to test_mini_unit.rb and fixed test class names.
[git-p4: depot-paths = "//src/minitest/dev/": change = 5883]
2010-10-07 19:39:23 -08:00
Ryan Davis 02b261d0dd Prepping for release
[git-p4: depot-paths = "//src/minitest/dev/": change = 5083]
2009-06-17 23:30:22 -08:00
Ryan Davis f921db180e Fixed manifest
[git-p4: depot-paths = "//src/minitest/dev/": change = 4533]
2009-01-20 15:24:04 -08:00
Ryan Davis 60f65942f5 Finished rename for minitest/...
[git-p4: depot-paths = "//src/minitest/dev/": change = 4315]
2008-10-09 10:44:16 -08:00
Ryan Davis 17bc421f95 Branched miniunit into minitest w/o test/unit compatibility
[git-p4: depot-paths = "//src/minitest/dev/": change = 4312]
2008-10-09 10:24:41 -08:00