aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing
Commit message (Collapse)AuthorAgeFilesLines
* Remove hard dependency on test-unitRafael Mendonça França2015-01-071-1/+6
| | | | | Instead show a error message asking users to add the gem to their Gemfile if test-unit could not be loaded.
* Backport rails/rails-perftest#2 to fix rake test:benchmarkYves Senn2013-06-274-4/+4
|
* Update RUBY_VERSION check for performance testing to handle 2.0.0mikeycgto2013-02-241-1/+1
|
* added marshal_load and marshal_dump for ProxyTestResult. Behavior of ↵SHIBATA Hiroshi2013-02-241-2/+10
| | | | method_missing with Marshal.dump and Marshal.load is changing in ruby 2.0.0 later.
* Update mocha version to 0.13.0 and change requiresCarlos Antonio da Silva2012-11-132-2/+1
|
* Avoid a Mocha deprecation warning.James Mead2012-11-131-1/+1
|
* Fix for Test::Unit Mocha compatibility.James Mead2012-11-131-3/+5
| | | | | | | | Mocha is now using a single AssertionCounter which needs a reference to the testcase as opposed to the result. This change is an unfortunate consequence of the copying of a chunk of Mocha's internal code in order to monkey-patch Test::Unit.
* Copy Mocha bug fix.James Mead2012-11-131-0/+2
| | | | | | | | | | | | A bug was fixed [1] in Mocha's integration with Test::Unit, but this monkey-patching code was copied before the fix. We need to copy the fixed version. The bug meant that an unexpected invocation against a mock within the teardown method caused a test *error* and not a test *failure*. [1] https://github.com/freerange/mocha/commit/f1ff6475ca2871f2977ab84cabbbfe2adadbbee6#diff-5
* Fix ActiveSupport integration with Mocha > 0.12.1Mike Gunderloy2012-08-021-1/+3
| | | | | | Mocha 0.12.2 renames the Integration module to MonkeyPatching. This breaks the code Rails uses to retrieve the assertion counter from Mocha.
* fix namespace collision with test-unit-activesupportJens Kraemer2012-06-101-1/+1
|
* Exceptions like Interrupt should not be rescued in tests.James Mead2012-05-291-0/+5
| | | | | This is a back-port of rails/rails#6525. See the commit notes there for details.
* Update performance profiler to work with latest ruby-profArun Agrawal2012-05-111-1/+1
| | | | Thanks to @carlosantoniodasilva
* fixing assert_difference issues on ruby 1.8Aaron Patterson2011-08-041-6/+7
|
* make assert_difference error message not suckAaron Patterson2011-08-031-5/+6
|
* correct error message for failed creationRay Baxter2011-06-261-1/+1
|
* Remove trailing white-spacesGuillermo Iguaran2011-06-056-52/+50
|
* import to java_import. Arun Agrawal2011-05-241-1/+1
|
* removed redundant metric support check (and print when it isn't)Gonçalo Silva2011-05-102-6/+6
|
* remove forgotten putsGonçalo Silva2011-05-101-1/+0
|
* ruby-prof's awesome call stack printer is now used by defaultGonçalo Silva2011-05-101-1/+1
|
* benchmarker and profiler now use the new performance testing tools (support ↵Gonçalo Silva2011-05-101-4/+7
| | | | for Rubinius and JRuby and high configurability)
* contemplate unsupported metricsGonçalo Silva2011-05-093-30/+18
|
* explicitly return from run() under minitest (metrics were printed with the ↵Gonçalo Silva2011-05-082-1/+3
| | | | previous solution)
* Merge branch 'master' of https://github.com/rails/rails into performance_testGonçalo Silva2011-05-083-46/+93
|\ | | | | | | | | Conflicts: activesupport/lib/active_support/testing/performance.rb
| * minitest/ruby19 compatible performance testJan Xie2011-05-051-43/+88
| |
| * convert strings to lambdas so we can use a consistent interface to the ↵Aaron Patterson2011-05-011-5/+5
| | | | | | | | objects in the collection
| * assert_difference can take a callable piece of code rather than just evaling ↵Aaron Patterson2011-05-011-4/+15
| | | | | | | | a string
* | don't use internal profiler methods on Rubinius and JRuby since we're only ↵Gonçalo Silva2011-04-033-8/+14
| | | | | | | | measuring wall clock for now (and the APIs will/can change, respectively)
* | removed unused class declarationGonçalo Silva2011-04-031-2/+0
| |
* | Merge branch 'master' of https://github.com/rails/rails into performance_testGonçalo Silva2011-04-032-21/+32
|\|
| * Moved Turn activation/dependency to railtiesDavid Heinemeier Hansson2011-03-311-33/+0
| |
| * Add using Turn with natural language test case names if the library is ↵David Heinemeier Hansson2011-03-312-0/+40
| | | | | | | | available (which it will be in Rails 3.1) [DHH]
| * Delegate pending to skip if Minitest is availableDavid Heinemeier Hansson2011-03-301-21/+25
| |
* | profiling enabled under JRuby. Added documentation for workaround described ↵Gonçalo Silva2011-04-034-17/+8
| | | | | | | | in JRUBY-5650.
* | check if there is support for the specified metric when profilingGonçalo Silva2011-03-304-24/+32
| |
* | fixed a bug where rubinius was creating the profiling files as directoriesGonçalo Silva2011-03-301-1/+1
| |
* | don't allow decimal places on the amount of objects and gc runsGonçalo Silva2011-03-291-1/+1
| |
* | improved detection and feedback of supported/unsupported metricsGonçalo Silva2011-03-286-54/+7
| |
* | fixed a couple of hidden bugsGonçalo Silva2011-03-283-3/+4
| |
* | improved options handling in performance testsGonçalo Silva2011-03-284-39/+42
| |
* | we need test-unit on mri 1.9Gonçalo Silva2011-03-281-3/+7
| |
* | added profiling and benchmarking capabilities to jruby (profiling is ↵Gonçalo Silva2011-03-281-18/+53
| | | | | | | | crippled because of a jruby bug)
* | benchmarking metrics are also implementation-specificGonçalo Silva2011-03-283-4/+20
| |
* | warn the user about unsupported benchmarking metrics he might have asked forGonçalo Silva2011-03-281-1/+2
| |
* | removed duplication in rubinius' benchmark codeGonçalo Silva2011-03-281-14/+10
| |
* | fix a bug where the GC wasn't being triggered at the start of the MRI benchmarksGonçalo Silva2011-03-281-0/+1
| |
* | :min_percent only makes sense in a RubyProf contextGonçalo Silva2011-03-282-2/+2
| |
* | added basic structure for jrubyGonçalo Silva2011-03-263-8/+78
| |
* | added support for profiling under rubiniusGonçalo Silva2011-03-263-7/+66
| |
* | fixed time and size units (should be seconds / bytes), fixed typo when ↵Gonçalo Silva2011-03-254-11/+10
| | | | | | | | counting memory allocations under rubinius