1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

29 commits

Author SHA1 Message Date
Jeremy Kemper
2cf161a384 Once is enough, mmk 2008-07-28 13:54:10 -07:00
Joshua Peek
d84d99a8f7 Undefine old run method 2008-07-19 10:52:30 -05:00
Jeremy Kemper
7430c4168f Decrease default benchmark runs from 10 to 4 2008-07-17 23:18:21 -07:00
Michael Koziarski
51e13d51ad Move test related core_ext stuff out of regular core ext to prevent nasty surprises when you require active_support then use Test::Unit directly. 2008-07-04 10:41:39 +03:00
Jeremy Kemper
d7462ea365 Revert "Check for mocha gem without requiring the lib. [#403 state:resolved]"
This reverts commit 4d5ac3f3d2.
2008-06-23 00:31:49 -07:00
Jeremy Kemper
4d5ac3f3d2 Check for mocha gem without requiring the lib. [#403 state:resolved] 2008-06-22 20:52:29 -07:00
Jeremy Kemper
8d24a029df Don't assume RubyProf constants are defined 2008-06-20 10:42:36 -07:00
Jeremy Kemper
879245de1c Tired of seeing <foo>/run 2008-06-20 00:36:59 -07:00
Jeremy Kemper
83c3e9903d Don't profile GC runs/time by default 2008-06-20 00:35:11 -07:00
Jeremy Kemper
1e0d2e36cc Performance: add GC metrics for # of runs and total runtime 2008-06-18 19:19:22 -07:00
Jeremy Kemper
2541f7ac47 Oops, include metric name in csv filename 2008-06-18 18:36:04 -07:00
Jeremy Kemper
616bc42fd7 Performance: tweak unsupported metric error message 2008-06-18 18:34:25 -07:00
Jeremy Kemper
90a9a7013c Write benchmark output to separate files per test+metric. Support Lloyd Hilaiel's GC.heap_info patch for current heap size. 2008-06-18 16:02:27 -07:00
Jeremy Kemper
899d63b997 process time for benchmarks (quicker), wall time for profiling (lower overhead) 2008-06-16 03:45:20 -07:00
Jeremy Kemper
fa2a255352 missed . joining rails version and git revision 2008-06-16 00:16:43 -07:00
Jeremy Kemper
ed67d90a98 Metrics::Memory measures in fractional KB also 2008-06-16 00:10:30 -07:00
Jeremy Kemper
49d19515b7 Extract environment. Hardcode some git info so I can start working with it now. 2008-06-16 00:08:39 -07:00
Jeremy Kemper
e8f78998b2 Force runs to be an integer. Start and stop RubyProf in same scope. Expect memory measurements in fractional KB now instead of bytes. Convert object allocation measurements to integer. Wrap up measure_mode in Metric instance method. 2008-06-15 21:47:28 -07:00
Jeremy Kemper
f93a6d99e6 Delegate run_test to @harness 2008-06-15 16:26:51 -07:00
Jeremy Kemper
59b2daba4f Metrics::[] escues NameError only. Fix MODE typo. 2008-06-15 14:48:15 -07:00
Jeremy Kemper
f7866cdac1 Extract Metric and Performer. Simplify and refactor. 2008-06-15 14:41:18 -07:00
Jeremy Kemper
01a4af4a74 Pass printer class to output_filename 2008-06-14 03:29:30 -07:00
Jeremy Kemper
eab71208db Performance: integration test benchmarking and profiling. [Jeremy Kemper] 2008-06-14 02:04:38 -07:00
Jeremy Kemper
34c51c9e8f Rubinious: setup/teardown override for miniunit 2008-06-10 14:01:16 -07:00
Jeremy Kemper
2b6bec5cdd Workaround missing Test::Unit::TestCase::PASSTHROUGH_EXCEPTIONS in Ruby < 1.8.6. [#224 state:resolved] 2008-05-19 11:16:21 -07:00
Jeremy Kemper
aae37bb4f7 Extract ActiveSupport::Callbacks from Active Record, test case setup and teardown, and ActionController::Dispatcher. Closes #10727.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-19 02:44:45 +00:00
Jeremy Kemper
139b92495f * Continue evolution toward ActiveSupport::TestCase and friends. #10679 [Josh Peek]
* TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse.  [Jeremy Kemper]


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:34:15 +00:00
Michael Koziarski
56fec2f269 Make Default Test work with both ruby 1.8.4 and 1.8.6. [DrMark] Closes #10003
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 23:24:10 +00:00
Michael Koziarski
2cc0cac3ef Introduce TestCase subclasses for testing rails applications allowing tests to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 02:21:21 +00:00