aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/test_unit/testing.rake
Commit message (Collapse)AuthorAgeFilesLines
* bring back `TEST` env for `rake test`.Yves Senn2016-01-121-1/+6
| | | | | | | Closes #23027. This does not restore complete backwards compatibility. It simply passes the contets of the `TEST` env to the new runner.
* modify to pass the correct argument to the test runner from rakeyuuji.yaginuma2015-09-081-5/+5
| | | | | | | | test runner sets file to be tested in plugin_rails_options, but in plugin_rails_options, processing has been made to the argument of the actual command rather than the argument of Minitest.run. For example, if you run `./bin rake db:migrate test`, the options[:patterns], `db:migrate test` was incorrectly set.
* Improve test runner's Minitest integration.Kasper Timm Hansen2015-06-041-7/+8
| | | | | | | | | | | This also adds free mix and matching of directories, files and lines filters. Like so: bin/rails test models/post_test.rb test/integration models/person_test.rb:26 You can also mix in a traditional Minitest filter: bin/rails test test/integration -n /check_it_out/
* Fix test rake when passing multiple argumentsArthur Neves2015-03-191-2/+2
| | | | bundle exec db:migrate rake was not working, with the new runner, before this commit
* Use Rails::TestRunner on rake testArthur Neves2015-03-181-16/+17
|
* Remove deprecated `test:all` and `test:all:db` tasksRafael Mendonça França2015-01-041-23/+0
|
* docs, AR no longer makes use of `test:prepare`. [ci skip]Yves Senn2014-11-281-1/+2
| | | | | | Change originated from https://github.com/rails/rails/pull/17739#issuecomment-64829088 /cc @metaskills
* Simplify rake test vs rake test:allDavid Geukers2014-11-101-3/+20
| | | | Renames `rake test:all` to `rake test` by changing old `rake test:run` to previous version of `rake test:all`. Removes old definition of `rake test`. Also renames `rake test:all:db` to `rake test:db` and deprecates `rake test:all` & `rake test:all:db`
* Add `test:jobs` taskyuuji.yaginuma2014-09-151-3/+3
|
* rbconfig is not used in these filesArun Agrawal2013-12-261-1/+0
| | | | remove unused requires
* Update testing.rake with more accurate description of test task.Josef Šimánek2013-10-291-1/+1
| | | | | According to #5ecd12 change. [ci skip]
* Added generated unit test for generator generator and new test:generators ↵Josef Šimánek2013-07-161-1/+5
| | | | rake task included in test:all rake task.
* Removed unused deprecation requires.Paul Nikitochkin2013-07-031-1/+0
|
* Making the rake file for tests easier to read.wangjohn2013-06-251-12/+1
| | | | | I'm defining a new class which modularizes how the `rake test` tasks are defined and invoked.
* Removing deprecation message and silencing method.wangjohn2013-06-261-18/+0
| | | | | | | | The deprecation rake task is no longer useful because the deprecated methods have already been removed. The method for silencing stderr has been removed since it was only useful for `rake test:uncommitted` which was deprecated and removed.
* Removing deprecated rake tasks.wangjohn2013-06-241-62/+0
| | | | | The `rake test:recent` and `rake test:uncommitted` tasks were deprecated and are now being removed.
* Refactoring the creation of TestTasks to remove code duplication.wangjohn2013-05-021-18/+4
|
* remove unused variablesVipul A M2013-04-061-1/+0
|
* extract test info from the command line and set up the test taskAaron Patterson2013-04-051-4/+6
|
* 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-031-24/+11
| |
* | 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-101-1/+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-141-14/+14
|
* 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-071-1/+15
| | | | | | 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-211-38/+1
|
* 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
|