Table of Contents - minitest: Ruby Standard Library Documentation
Pages
-
History
- 5.20.0 / 2023-09-06
- 5.19.0 / 2023-07-26
- 5.18.1 / 2023-06-16
- 5.18.0 / 2023-03-04
- 5.17.0 / 2022-12-31
- 5.16.3 / 2022-08-17
- 5.16.2 / 2022-07-03
- 5.16.1 / 2022-06-20
- 5.16.0 / 2022-06-14
- 5.15.0 / 2021-12-14
- 5.14.4 / 2021-02-23
- 5.14.3 / 2021-01-05
- 5.14.2 / 2020-08-31
- 5.14.1 / 2020-05-15
- 5.14.0 / 2020-01-11
- 5.13.0 / 2019-10-29
- 5.12.2 / 2019-09-28
- 5.12.1 / 2019-09-28
- 5.12.0 / 2019-09-22
- 5.11.3 / 2018-01-26
- 5.11.2 / 2018-01-25
- 5.11.1 / 2018-01-02
- 5.11.0 / 2018-01-01
- 5.11.0b1 / 2017-12-20
- 5.10.3 / 2017-07-21
- 5.10.2 / 2017-05-09
- 5.10.1 / 2016-12-01
- 5.10.0 / 2016-11-30
- 5.9.1 / 2016-09-25
- 5.9.0 / 2016-05-16
- 5.8.5 / 2016-09-25
- 5.8.4 / 2016-01-21
- 5.8.3 / 2015-11-17
- 5.8.2 / 2015-10-26
- 5.8.1 / 2015-09-23
- 5.8.0 / 2015-08-06
- 5.7.0 / 2015-05-27
- 5.6.1 / 2015-04-27
- 5.6.0 / 2015-04-13
- 5.5.1 / 2015-01-09
- 5.5.0 / 2014-12-12 // mri 2.2.0 (as a real gem)
- 5.4.3 / 2014-11-11
- 5.4.2 / 2014-09-26
- 5.4.1 / 2014-08-28
- 5.4.0 / 2014-07-07
- 5.3.5 / 2014-06-17
- 5.3.4 / 2014-05-15
- 5.3.3 / 2014-04-14
- 5.3.2 / 2014-04-02
- 5.3.1 / 2014-03-14
- 5.3.0 / 2014-02-25
- 5.2.3 / 2014-02-10
- 5.2.2 / 2014-01-22
- 5.2.1 / 2014-01-07
- 5.2.0 / 2013-12-13
- 5.1.0 / 2013-12-05
- 5.0.8 / 2013-09-20
- 5.0.7 / 2013-09-05
- 5.0.6 / 2013-06-28
- 4.7.5 / 2013-06-21 // mri 2.1.1
- 5.0.5 / 2013-06-20
- 5.0.4 / 2013-06-07
- 5.0.3 / 2013-05-29
- 5.0.2 / 2013-05-20
- 5.0.1 / 2013-05-14
- 5.0.0 / 2013-05-10
- 4.7.4 / 2013-05-01
- 4.7.3 / 2013-04-20
- 4.7.2 / 2013-04-18
- 4.7.1 / 2013-04-09
- 4.7.0 / 2013-03-18
- 4.6.2 / 2013-02-27
- 4.6.1 / 2013-02-14
- 4.6.0 / 2013-02-07
- 4.5.0 / 2013-01-22
- 4.4.0 / 2013-01-07
- 4.3.3 / 2012-12-06
- 4.3.2 / 2012-11-27 // mri 2.0.0
- 4.3.1 / 2012-11-23
- 4.3.0 / 2012-11-17
- 4.2.0 / 2012-11-02
- 4.1.0 / 2012-10-05
- 4.0.0 / 2012-09-28
- 3.5.0 / 2012-09-21
- 3.4.0 / 2012-09-05
- 3.3.0 / 2012-07-26
- 3.2.0 / 2012-06-26
- 3.1.0 / 2012-06-13
- 3.0.1 / 2012-05-24
- 3.0.0 / 2012-05-08
- 2.12.1 / 2012-04-10
- 2.12.0 / 2012-04-03
- 2.11.4 / 2012-03-20
- 2.11.3 / 2012-02-29
- 2.11.2 / 2012-02-14
- 2.11.1 / 2012-02-01
- 2.11.0 / 2012-01-25
- 2.10.1 / 2012-01-17
- 2.10.0 / 2011-12-20
- 2.9.1 / 2011-12-13
- 2.9.0 / 2011-12-07
- 2.8.1 / 2011-11-17
- 2.8.0 / 2011-11-08
- 2.7.0 / 2011-10-25
- 2.6.2 / 2011-10-19
- 2.6.1 / 2011-09-27
- 2.6.0 / 2011-09-13
- 2.5.1 / 2011-08-27 // ruby 1.9.3: p0, p125, p34579
- 2.5.0 / 2011-08-18
- 2.4.0 / 2011-08-09
- 2.3.1 / 2011-06-22
- 2.3.0 / 2011-06-15
- 2.2.2 / 2011-06-01
- 2.2.1 / 2011-05-31
- 2.2.0 / 2011-05-29
- 2.1.0 / 2011-04-11
- 2.0.2 / 2010-12-24
- 2.0.1 / 2010-12-15
- 2.0.0 / 2010-11-11
- 1.7.2 / 2010-09-23
- 1.7.1 / 2010-09-01
- 1.7.0 / 2010-07-15
- 1.6.0 / 2010-03-27 // ruby 1.9.2-p290
- 1.5.0 / 2010-01-06
- 1.4.2 / 2009-06-25
- 1.4.1 / 2009-06-23
- 1.4.0 / 2009-06-18
- 1.3.1 / 2009-01-20 // ruby 1.9.1-p431
- 1.3.0 / 2008-10-09
- 1.2.1 / 2008-06-10
- 1.2.0 / 2008-06-09
- 1.1.0 / 2007-11-08
- 1.0.0 / 2006-10-30
-
README
- minitest/{test,spec,mock,benchmark}
- DESCRIPTION:
- FEATURES/PROBLEMS:
- RATIONALE:
- SYNOPSIS:
- Unit tests
- Specs
- Benchmarks
- Mocks
- Multi-threading and Mocks
- Stubs
- Running Your Tests
- Rake Tasks
- Rake Task Variables
- Writing Extensions
- Adding custom reporters
- FAQ
- What versions are compatible with what? Or what versions are supported?
- How to test SimpleDelegates?
- How to share code across test classes?
- How to run code before a group of tests?
- Why am I seeing
uninitialized constant MiniTest::Test (NameError)
? - Prominent Projects using Minitest:
- Developing Minitest:
- Minitest’s own tests require UTF-8 external encoding.
- Minitest’s own tests require GNU (or similar) diff.
- Known Extensions:
- Unknown Extensions:
- Minitest related goods
- REQUIREMENTS:
- INSTALL:
- LICENSE:
Classes and Modules
- Kernel
- Minitest
- Minitest::AbstractReporter
- Minitest::Assertion
- Minitest::Assertions
- Minitest::BacktraceFilter
- Minitest::BenchSpec
- Minitest::Benchmark
- Minitest::CompositeReporter
- Minitest::Expectations
- Minitest::Guard
- Minitest::Mock
- Minitest::Parallel
- Minitest::Parallel::Executor
- Minitest::PrideIO
- Minitest::PrideLOL
- Minitest::ProgressReporter
- Minitest::Reportable
- Minitest::Result
- Minitest::Skip
- Minitest::Spec
- Minitest::Spec::DSL
- Minitest::Spec::DSL::InstanceMethods
- Minitest::StatisticsReporter
- Minitest::SummaryReporter
- Minitest::Test
- Minitest::Test::LifecycleHooks
- Minitest::TestTask
- Minitest::UnexpectedError
- Object
- SubThingySpec
- ThingySpec
Methods
- ::__run — Minitest
- ::after_run — Minitest
- ::autorun — Minitest
- ::bench — Minitest::BenchSpec
- ::bench_exp — Minitest::Benchmark
- ::bench_linear — Minitest::Benchmark
- ::bench_performance_constant — Minitest::BenchSpec
- ::bench_performance_exponential — Minitest::BenchSpec
- ::bench_performance_linear — Minitest::BenchSpec
- ::bench_performance_logarithmic — Minitest::BenchSpec
- ::bench_performance_power — Minitest::BenchSpec
- ::bench_range — Minitest::Benchmark
- ::bench_range — Minitest::BenchSpec
- ::create — Minitest::TestTask
- ::diff — Minitest::Assertions
- ::diff= — Minitest::Assertions
- ::from — Minitest::Result
- ::i_suck_and_my_tests_are_order_dependent! — Minitest::Test
- ::make_my_diffs_pretty! — Minitest::Test
- ::methods_matching — Minitest::Runnable
- ::new — Minitest::Parallel::Executor
- ::parallelize_me! — Minitest::Test
- ::pride! — Minitest::PrideIO
- ::pride? — Minitest::PrideIO
- ::run — Minitest::Runnable
- ::run — Minitest
- ::run_one_method — Minitest::Runnable
- ::runnable_methods — Minitest::Runnable
- ::runnable_methods — Minitest::Test
- ::runnables — Minitest::Runnable
- ::test_order — Minitest::Runnable
- #<< — Minitest::CompositeReporter
- #<< — Minitest::Parallel::Executor
- #_ — Minitest::Spec::DSL::InstanceMethods
- #after — Minitest::Spec::DSL
- #after_setup — Minitest::Test::LifecycleHooks
- #after_teardown — Minitest::Test::LifecycleHooks
- #assert — Minitest::Assertions
- #assert_empty — Minitest::Assertions
- #assert_equal — Minitest::Assertions
- #assert_in_delta — Minitest::Assertions
- #assert_in_epsilon — Minitest::Assertions
- #assert_includes — Minitest::Assertions
- #assert_instance_of — Minitest::Assertions
- #assert_kind_of — Minitest::Assertions
- #assert_match — Minitest::Assertions
- #assert_mock — Minitest::Assertions
- #assert_nil — Minitest::Assertions
- #assert_operator — Minitest::Assertions
- #assert_output — Minitest::Assertions
- #assert_path_exists — Minitest::Assertions
- #assert_pattern — Minitest::Assertions
- #assert_performance — Minitest::Benchmark
- #assert_performance_constant — Minitest::Benchmark
- #assert_performance_exponential — Minitest::Benchmark
- #assert_performance_linear — Minitest::Benchmark
- #assert_performance_logarithmic — Minitest::Benchmark
- #assert_performance_power — Minitest::Benchmark
- #assert_predicate — Minitest::Assertions
- #assert_raises — Minitest::Assertions
- #assert_respond_to — Minitest::Assertions
- #assert_same — Minitest::Assertions
- #assert_send — Minitest::Assertions
- #assert_silent — Minitest::Assertions
- #assert_throws — Minitest::Assertions
- #backtrace_filter — Minitest
- #before — Minitest::Spec::DSL
- #before_setup — Minitest::Test::LifecycleHooks
- #before_teardown — Minitest::Test::LifecycleHooks
- #capture_io — Minitest::Assertions
- #capture_subprocess_io — Minitest::Assertions
- #describe — Kernel
- #diff — Minitest::Assertions
- #error? — Minitest::Reportable
- #exception_details — Minitest::Assertions
- #expect — Minitest::Mock
- #expect — Minitest::Spec::DSL::InstanceMethods
- #extensions — Minitest
- #fail_after — Minitest::Assertions
- #filter — Minitest::BacktraceFilter
- #fit_error — Minitest::Benchmark
- #fit_exponential — Minitest::Benchmark
- #fit_linear — Minitest::Benchmark
- #fit_logarithmic — Minitest::Benchmark
- #fit_power — Minitest::Benchmark
- #flunk — Minitest::Assertions
- #info_signal — Minitest
- #it — Minitest::Spec::DSL
- #jruby? — Minitest::Guard
- #let — Minitest::Spec::DSL
- #location — Minitest::Assertion
- #location — Minitest::Reportable
- #maglev? — Minitest::Guard
- #make_test_cmd — Minitest::TestTask
- #message — Minitest::Assertions
- #metadata — Minitest::Runnable
- #metadata? — Minitest::Runnable
- #mri? — Minitest::Guard
- #mu_pp — Minitest::Assertions
- #mu_pp_for_diff — Minitest::Assertions
- #must_be — Minitest::Expectations
- #must_be_close_to — Minitest::Expectations
- #must_be_empty — Minitest::Expectations
- #must_be_instance_of — Minitest::Expectations
- #must_be_kind_of — Minitest::Expectations
- #must_be_nil — Minitest::Expectations
- #must_be_same_as — Minitest::Expectations
- #must_be_silent — Minitest::Expectations
- #must_be_within_epsilon — Minitest::Expectations
- #must_equal — Minitest::Expectations
- #must_include — Minitest::Expectations
- #must_match — Minitest::Expectations
- #must_output — Minitest::Expectations
- #must_pattern_match — Minitest::Expectations
- #must_raise — Minitest::Expectations
- #must_respond_to — Minitest::Expectations
- #must_throw — Minitest::Expectations
- #name — Minitest::Runnable
- #name= — Minitest::Runnable
- #osx? — Minitest::Guard
- #parallel_executor — Minitest
- #pass — Minitest::Assertions
- #passed? — Minitest::Runnable
- #passed? — Minitest::AbstractReporter
- #passed? — Minitest::Reportable
- #path_must_exist — Minitest::Expectations
- #path_wont_exist — Minitest::Expectations
- #prerecord — Minitest::AbstractReporter
- #pride — Minitest::PrideIO
- #pride — Minitest::PrideLOL
- #print — Minitest::PrideIO
- #process_env — Minitest::TestTask
- #record — Minitest::AbstractReporter
- #refute — Minitest::Assertions
- #refute_empty — Minitest::Assertions
- #refute_equal — Minitest::Assertions
- #refute_in_delta — Minitest::Assertions
- #refute_in_epsilon — Minitest::Assertions
- #refute_includes — Minitest::Assertions
- #refute_instance_of — Minitest::Assertions
- #refute_kind_of — Minitest::Assertions
- #refute_match — Minitest::Assertions
- #refute_nil — Minitest::Assertions
- #refute_operator — Minitest::Assertions
- #refute_path_exists — Minitest::Assertions
- #refute_pattern — Minitest::Assertions
- #refute_predicate — Minitest::Assertions
- #refute_respond_to — Minitest::Assertions
- #refute_same — Minitest::Assertions
- #register_spec_type — Minitest::Spec::DSL
- #report — Minitest::AbstractReporter
- #report — Minitest::StatisticsReporter
- #reporter — Minitest
- #result_code — Minitest::Runnable
- #result_code — Minitest::Reportable
- #rubinius? — Minitest::Guard
- #run — Minitest::Runnable
- #run — Minitest::Test
- #seed — Minitest
- #setup — ThingySpec
- #setup — SubThingySpec
- #setup — Minitest::Test::LifecycleHooks
- #shutdown — Minitest::Parallel::Executor
- #sigma — Minitest::Benchmark
- #skip — Minitest::Assertions
- #skip_until — Minitest::Assertions
- #skipped? — Minitest::Runnable
- #skipped? — Minitest::Reportable
- #skipped? — Minitest::Assertions
- #spec_type — Minitest::Spec::DSL
- #specify — Minitest::Spec::DSL
- #start — Minitest::AbstractReporter
- #start — Minitest::Parallel::Executor
- #stub — Object
- #subject — Minitest::Spec::DSL
- #teardown — Minitest::Test::LifecycleHooks
- #test_should_do_the_first_thing — ThingySpec
- #test_should_do_the_second_thing — SubThingySpec
- #things_to_diff — Minitest::Assertions
- #validation_for_fit — Minitest::Benchmark
- #value — Minitest::Spec::DSL::InstanceMethods
- #verify — Minitest::Mock
- #windows? — Minitest::Guard
- #wont_be — Minitest::Expectations
- #wont_be_close_to — Minitest::Expectations
- #wont_be_empty — Minitest::Expectations
- #wont_be_instance_of — Minitest::Expectations
- #wont_be_kind_of — Minitest::Expectations
- #wont_be_nil — Minitest::Expectations
- #wont_be_same_as — Minitest::Expectations
- #wont_be_within_epsilon — Minitest::Expectations
- #wont_equal — Minitest::Expectations
- #wont_include — Minitest::Expectations
- #wont_match — Minitest::Expectations
- #wont_pattern_match — Minitest::Expectations
- #wont_respond_to — Minitest::Expectations