aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/test_unit
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes bug 10628.Scott Hill2013-05-151-1/+1
|
* Refactoring the creation of TestTasks to remove code duplication.wangjohn2013-05-021-18/+4
|
* Moved the check for the rails test environment into rails/test_unit so that youwangjohn2013-04-231-0/+4
| | | | can select frameworks separately when running rake test.
* remove unused variablesVipul A M2013-04-061-1/+0
|
* rake test app/model/foo.rb and rake test models/foo worksAaron Patterson2013-04-051-3/+23
|
* extract test info from the command line and set up the test taskAaron Patterson2013-04-051-4/+6
|
* add a class for splitting up rake commandsAaron Patterson2013-04-051-0/+35
|
* Update Rake tasks to call `rails test` insteadPrem Sichanugrist2013-04-051-7/+10
| | | | | | | | | Also, print out deprecation warning for other rake tasks except `rake test` and `rake` (default) Conflicts: railties/lib/rails/test_unit/testing.rake railties/test/application/rake_test.rb
* Merge branch 'master' into railstestAaron Patterson2013-04-051-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (44 commits) Improve the changelog entry [ci skip] Fix explicit names on multiple file fields Correctly parse bigint defaults in PostgreSQL Move changelog to the top [ci skip] Fix indent and remove extra white spaces Fix scope chaining + STI failing test for #9869 Improve `belongs_to touch: true` timestamp test Sort modules in alphabetical order. Avoid an attempt to fetch old record when id was not present in touch callback Use the correct pk field from the reflected class to find the old record Refactor mail_to to not generate intermediate hashes when adding href Ensure mail_to helper does not modify the given html options hash Use inspect when writing the foreign key from the reflection Use a space after the comment sign when showing the result of commands Exclude template files for rdoc API [ci skip] template should have generic name use | to have more intent revealing code Revert "Merge pull request #10034 from benofsky/fix_skipping_object_callback_filters" stop depending on callbacks ... Conflicts: railties/test/application/rake_test.rb
* | check pending migrations against the test dbAaron Patterson2013-04-031-15/+1
| |
* | a test file can be provided to rake, e.g.:Aaron Patterson2013-04-031-1/+10
| | | | | | | | rake test path/to/test.rb
* | switch to Rails::TestTaskAaron Patterson2013-04-032-25/+34
| |
* | Revert "Update Rake tasks to call `rails test` instead"Aaron Patterson2013-04-031-28/+52
| | | | | | | | This reverts commit b51673fbd9563bd3ffa22e22255ca1cef80cfb6d.
* | Revert "Warning removed unused variable task_name"Aaron Patterson2013-04-031-0/+1
|/ | | | This reverts commit 106e15927f0dd8060fc37eff44b823a92fa94bd2.
* Warning removed unused variable task_nameArun Agrawal2013-03-151-1/+0
| | | | warning: assigned but unused variable - task_name
* Update Rake tasks to call `rails test` insteadPrem Sichanugrist2013-03-091-52/+28
| | | | | Also, print out deprecation warning for other rake tasks except `rake test` and `rake` (default)
* Added test:all and test:all:db tasks to speed up full test runs.Ryan Davis2013-02-041-0/+12
| | | | | | | | | | Speed up depends on the number of test phases (N) you have for your app, but it is roughly a 1/N improvement. In my app, it goes from 15.51s to 5.56s. Inspired by http://ngauthier.com/2012/02/quick-tests-with-bash.html Reviewed by @tenderlove
* remove performance tests from the default stackYves Senn2013-01-102-2/+1
|
* extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-101-11/+0
|
* Rake test:uncommitted finds git directory in ancestors.Nicolas Despres2012-11-101-1/+1
| | | | | | | | | | | | | Sometimes your git directory is an ancestor of your application root directory. For example: ./repo/.git/ ./repo/app/Rakefile In this case rake test:uncommitted will be unable to detect your SCM. This patch fixes this and add a test.
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-142-16/+16
|
* Update test locationsMike Moore2012-10-091-6/+30
| | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
* Revert "Use flat_map { } instead of map {}.flatten"Santiago Pastorino2012-10-051-2/+2
| | | | | | | | | | | This reverts commit abf8de85519141496a6773310964ec03f6106f3f. We should take a deeper look to those cases flat_map doesn't do deep flattening. irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten => [1, 3, 1, 2] irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i} => [[1, 3], [1, 2]]
* Use flat_map { } instead of map {}.flattenSantiago Pastorino2012-10-051-2/+2
|
* ignore .gitignore'd files in rake test:uncomittedAkira Matsuda2012-06-121-1/+1
|
* Fix that failed tests should exit with a nonzero error code.Jeremy Kemper2012-02-072-31/+17
| | | | | | Partially reverts 14c89e7285d4e7cd40a542fbc31d9345f60c3aa4. Hat tip to @tenderlove for paring down the TestTask!
* Rails::Plugin has goneSantiago Pastorino2012-01-031-11/+1
|
* Move SubTestTask. Soften up tests.Jeremy Kemper2011-12-212-38/+37
|
* Restore `rake TEST=test/unit/foo_test.rb` support.Jeremy Kemper2011-12-211-1/+5
| | | | | | | | | | | | | Add your own test tasks as dependencies on the `test:run` task instead of `test` itself. namespace :test do task run: 'test:acceptance' Rails::SubTestTask.new acceptance: 'test:prepare' do |t| t.libs << 'test' t.pattern = 'test/acceptance/**/*_test.rb' end end
* Rails::SubTestTask warns on test failure and moves on. Renamed from ↵Jeremy Kemper2011-12-211-45/+38
| | | | | | | | | | | | | | | | | TestTaskWithoutDescription. This makes it easier to add your own tests to the default suite: task test: 'test:acceptance' namespace :test do Rails::SubTestTask.new acceptance: 'test:prepare' do |t| t.libs << 'test' t.pattern = 'test/acceptance/**/*_test.rb' end end Now `rake` runs unit, functional, integration, and acceptance tests.
* Refactor test:uncommitted task.Arun Agrawal2011-11-091-10/+3
| | | Thanks to @sobrinho (Gabriel Sobrinho)
* Should be checking if file exists or not.Arun Agrawal2011-11-081-3/+9
| | | | | | I found this bug when running rake test:uncommitted on a newly generated rails app which don't have test file for application_controller. Can see detail here #3461
* method redefined warning removed!Arun Agrawal2011-10-291-0/+1
|
* testing.rake should set the default task, closes #2564José Valim2011-10-071-0/+2
|
* For svn files also spilt requiredArun Agrawal2011-07-231-1/+1
|
* Spliting the ouput of git ls-files for running tasks Fixes #713Arun Agrawal2011-07-231-1/+1
|
* Add test to rake test for error messagesWen-Tien Chang2011-06-301-1/+5
|
* Make "rake test" display not only task name but also exception message.Wen-Tien Chang2011-06-291-2/+2
|
* prevent rake test to run the test suite three times when ENV['TEST'] is set ↵David Calavera2010-10-101-1/+6
| | | | | | [#3572 state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Added config.app_generators to allow configuring application's generators ↵Piotr Sarnacki2010-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from railties. With config.generators becomes a way to configure generators for current instance only. For example: module Blog class Engine < Rails::Engine config.generators do |g| g.orm :active_record end config.app_generators do |g| g.test_framework :rspec end end end such definition sets :active_record as orm for engine and :rspec as test_framework for application. The values set with app_generators can be overwritten in application using config.generators as you would normally do: module MyApp class Application < Rails::Application config.generators do |g| g.test_framework :test_unit end end end
* Config is deprecated on 1.8.8 and 1.9.3 use RbConfigSantiago Pastorino2010-08-231-1/+2
|
* Corrected the rake test:units and test:functionals description [#5251 ↵Prashant P. Shah2010-08-011-1/+1
| | | | | | state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
| | | | not "ActiveRecord"
* Cut down even further on rake -T noiseDavid Heinemeier Hansson2010-06-091-13/+37
|
* Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved]Anil Wadghule2010-04-261-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure application rake tasks and generators are loaded after the ones ↵José Valim2010-04-261-0/+2
| | | | specified in railties/engines/rails. [#4471 state:resolved]
* Use correct RUBY_PLATFORM regex for Windows env [#4385 state:resolved]Anil Wadghule2010-04-131-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* db:test:prepare for tasks only if AR is loadedSantiago Pastorino2010-04-091-7/+11
|
* Move application configuration to the application configuration object, ↵José Valim2010-03-261-2/+0
| | | | remove railtie_name and engine_name and allow to set the configuration object.
* Resolve test/unit load ordering by removing backtrace filter from boot ↵Jeremy Kemper2010-02-111-9/+1
| | | | initializers