Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove deprecated `assert_present` and `assert_blank`. | Yves Senn | 2013-07-01 | 1 | -30/+0 |
| | |||||
* | add documentation for `ActiveSupport::Testing::SetupAndTeardown`. | Yves Senn | 2013-06-19 | 1 | -2/+17 |
| | |||||
* | better documentation for `AS::Testing::Declarative#test`. [ci skip] | Yves Senn | 2013-06-19 | 1 | -3/+6 |
| | |||||
* | Remove active_support/testing/pending.rb was deprecated. | kennyj | 2013-06-01 | 1 | -14/+0 |
| | |||||
* | oops. I should have only required minitest, not minitets/autorun. muscle memory. | Ryan Davis | 2013-05-09 | 1 | -1/+1 |
| | |||||
* | Updates to make rails 4 happy with minitest 5: | Ryan Davis | 2013-05-06 | 3 | -14/+9 |
| | | | | | | | | | | + Namespace changes, overhaul of runners. + Internal ivar name changes - Removed a logger globally applied to tests that spew everywhere?!? + Override Minitest#__run to sort tests by name. + Reworked testing isolation to work with the new cleaner architecture. - Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago. - Minor report output differences. | ||||
* | Work around change in how MiniTest detects SIGINFO | Jon Leighton | 2013-05-03 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | MiniTest 4.7.3 detects the presence of SIGINFO and stores the answer in a constant. It seems that MiniTest 4.7.4 changes this, and instead relies on an info_signal method being implemented on the runner object. In ActiveSupport::Testing::Isolation, we use ProxyTestResult to stand in for the runner object. This object implements `method_missing`, and as such its #info_signal method has a truthy return value. This results in MiniTest trying to install the SIGINFO handler on platforms where SIGINFO does not exists. To fix, I am simply defining an explicit ProxyTestResult#info_signal method. | ||||
* | determine_constant_from_test_name does not swallow NoMethodErrors [Yves Senn] | Xavier Noria | 2013-03-28 | 1 | -0/+2 |
| | |||||
* | Bump up minitest dependency and remove our own reinvented version of ↵ | Akira Matsuda | 2013-02-19 | 1 | -37/+1 |
| | | | | ParallelEach | ||||
* | 'minitest/parallel_each' might not always be available | Akira Matsuda + Koichi Sasada | 2013-01-29 | 1 | -1/+4 |
| | |||||
* | Needs to explicitly require 'minitest/parallel_each' | Akira Matsuda + Koichi Sasada | 2013-01-29 | 1 | -0/+2 |
| | | | | Minitest has changed to require this since https://github.com/seattlerb/minitest/commit/728054b | ||||
* | The test setup is not threadsafe. Wrap in a mutex. | Jon Leighton | 2013-01-18 | 1 | -3/+7 |
| | |||||
* | MiniTest already defines a ParallelEach class | Jon Leighton | 2013-01-18 | 1 | -23/+27 |
| | | | | | This may or may not fix the intermittent railties failures we've been seeing on the CI with Ruby 2.0. We'll see. | ||||
* | extract PerformanceTest into rails-performance_tests gem | Yves Senn | 2013-01-10 | 4 | -672/+0 |
| | |||||
* | deprecate `assert_blank` and `assert_present`. | Yves Senn | 2013-01-05 | 1 | -0/+2 |
| | | | | | They don't add any benefits over `assert object.blank?` and `assert object.present?` | ||||
* | added marshal_load and marshal_dump for ProxyTestResult. Behavior of ↵ | SHIBATA Hiroshi | 2013-01-05 | 1 | -2/+10 |
| | | | | method_missing with Marshal.dump and Marshal.load is changing in ruby 2.0.0 later. | ||||
* | Add active_support/testing/autorun | Rafael Mendonça França | 2012-12-31 | 1 | -0/+5 |
| | | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails | ||||
* | Revert "minitest provides "it" and "describe"" | Rafael Mendonça França | 2012-12-31 | 1 | -0/+40 |
| | | | | | | | | | | This reverts commit 22bc12ec374b8bdeb3818ca0a3eb787dd3ce39d8. REASON: We will remove the MiniTest::Spec from Rails and we need these methods again Conflicts: activesupport/lib/active_support/test_case.rb | ||||
* | Introduce assert_not to replace 'assert !foo' | Jeremy Kemper | 2012-12-28 | 1 | -0/+16 |
| | |||||
* | Make test logs easier to read. | Jeremy Kemper | 2012-12-26 | 1 | -11/+10 |
| | | | | | | Tagging every message in tests makes the logs really wide. It's great for grepping, but annoying to open in an editor or a narrow terminal. Try out a different approach: spit out a heading before each test. | ||||
* | nodoc AS::Testing::ConstantLookup::ClassMethods [ci skip] | Carlos Duclos | 2012-12-01 | 1 | -1/+1 |
| | |||||
* | nodoc AS::Testing::Pending because is deprecated [ci skip] | Carlos Duclos | 2012-12-01 | 1 | -2/+2 |
| | |||||
* | Properly deprecate #pending from AS::TestCase | Carlos Antonio da Silva | 2012-11-18 | 1 | -8/+2 |
| | | | | Check https://github.com/rails/rails/pull/4575#issuecomment-5765575. | ||||
* | Revert "Merge pull request #4575 from carlosantoniodasilva/remove-test-pending" | Carlos Antonio da Silva | 2012-11-18 | 1 | -0/+20 |
| | | | | | | | | | This reverts commit 1620df78dff527b4fa3f7b204fa05d1b630aae17, reversing changes made to 2d000328dfc0d4b297fb4bdcebc9af6c2fb559dc. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/test_case.rb | ||||
* | Simplify code by taking advantage of latest mocha (v0.13.0). | James Mead | 2012-11-12 | 1 | -22/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | This only works with mocha v0.13.0 or later. Note that this also fixes a few subtle bugs present in the current implementation :- * Mocha was raising a `MiniTest::Assertion` instead of a `Mocha::ExpectationError` as intended. The latter is not recognized by MiniTest as an assertion failure and so it is recorded as a test *error*, not a test *failure* as it ought to. This leads to potentially confusing output in the test results. * Mocha verification should happen as part of the test. The verification of expectations is equivalent to a set of assertions. These assertions should happen as *part of* the test so that they have a chance to cause the test to fail, and not just as part of the teardown. Also if an assertion fails during the test, then there is no need to verify expectations, because only the first assertion failure is normally reported and all subsequent bets are off. * Expectation verification should be counted as an assertion. Mocha cannot record each expectation verification as an assertion, because we weren't passing in an assertion counter to `#mocha_verify`. | ||||
* | mocha_standalone is now deprecated. Switch to mocha/api. | Jeremy Kemper | 2012-11-05 | 1 | -1/+1 |
| | |||||
* | Remove AS::Concern extension from Testing::TaggedLogging | Carlos Antonio da Silva | 2012-11-05 | 1 | -4/+0 |
| | |||||
* | some ruby interpreters don't have ruby-prof so just skip the tests | Aaron Patterson | 2012-10-18 | 1 | -1/+1 |
| | | | | rather than exiting the process. | ||||
* | Tests tag the Rails log with the current test class and test case | Jeremy Kemper | 2012-09-26 | 1 | -0/+30 |
| | |||||
* | Add missing inflector dependency | Mike Moore | 2012-09-25 | 1 | -3/+2 |
| | |||||
* | Create ActiveSupport::Testing::ConstantLookup | Mike Moore | 2012-09-24 | 1 | -0/+53 |
| | | | | | AS::TC::ConstantLookup walks the test's name to find the constant it is describing. This additional lookup logic is needed to better support minitest's spec DSL. | ||||
* | update AS/notifications and AS/testing docs [ci skip] | Francesco Rodriguez | 2012-09-14 | 2 | -7/+9 |
| | |||||
* | deprecate `describe` without a block. | Aaron Patterson | 2012-07-09 | 1 | -22/+0 |
| | | | | | minitest/spec provides `describe`, so deprecate the rails version and have people use the superclass version | ||||
* | we still need `describe` as the implementation differs from minitest | Aaron Patterson | 2012-07-08 | 1 | -0/+22 |
| | |||||
* | minitest provides "it" and "describe" | Aaron Patterson | 2012-07-08 | 1 | -40/+0 |
| | | | | Remove rails implementation of describe, alias "test" to "it" | ||||
* | Kill not used constant since removal of runner method | Carlos Antonio da Silva | 2012-07-03 | 1 | -9/+0 |
| | | | | Runner method was removed in ada571bfcdbad669ae43a4dd18277ef227680a0b. | ||||
* | remove the runner method copied from minitest | Aaron Patterson | 2012-07-03 | 1 | -20/+7 |
| | |||||
* | hook mocha in through m/t before_setup, after_teardown hooks | Aaron Patterson | 2012-07-03 | 2 | -7/+22 |
| | |||||
* | add :nodoc: to internal implementations [ci skip] | Francesco Rodriguez | 2012-06-22 | 2 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-06-22 | 1 | -23/+34 |
|\ | |||||
| * | fixes a few mistakes in api docs [ci skip] | Vijay Dev | 2012-06-22 | 1 | -1/+1 |
| | | |||||
| * | update AS::Testing::Assertions docs | Francesco Rodriguez | 2012-06-19 | 1 | -21/+32 |
| | | |||||
| * | fix typo [ci skip] | Francesco Rodriguez | 2012-06-19 | 1 | -2/+2 |
| | | |||||
* | | Run the logger tests in isolation | Rafael Mendonça França | 2012-06-19 | 1 | -1/+1 |
| | | |||||
* | | CORES needs to be a integer | Rafael Mendonça França | 2012-06-19 | 1 | -1/+1 |
| | | |||||
* | | run railties tests in parallel, default to 2 cores | Aaron Patterson | 2012-06-19 | 1 | -0/+39 |
|/ | |||||
* | Eliminate dependency on Rails::VERSION::STRING | Andrew White | 2012-06-05 | 1 | -18/+23 |
| | | | | | | To facilitate the use of ActiveSupport::Testing::Performance outside of a Rails application conditionally check for the presence of Rails::VERSION::STRING before including it in the environment string. | ||||
* | Reduce warning messages when running Active Support tests | Andrew White | 2012-05-31 | 1 | -0/+5 |
| | | | | Eliminate the warnings generated by redefining methods and constants. | ||||
* | Merge pull request #6525 from freerange/minitest-passthrough-exceptions | José Valim | 2012-05-29 | 1 | -0/+12 |
|\ | | | | | Exceptions like Interrupt & NoMemoryError should not be rescued in tests. | ||||
| * | Avoid dependency on MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS. | James Mead | 2012-05-29 | 1 | -2/+10 |
| | |