Arthur Neves
a9eb12393f
Use absolute path on find_method location for the runner
2015-03-19 10:15:03 -04:00
Arthur Neves
4bb9268474
Fix test rake when passing multiple arguments
...
bundle exec db:migrate rake was not working, with the new runner, before this commit
2015-03-19 10:15:03 -04:00
Arthur Neves
9afd9d232c
method_source needs to be a hard dependency on railties
2015-03-19 10:15:03 -04:00
Yves Senn
9959e9525b
Merge pull request #19216 from senny/bin_test_runner
...
`bin/rails test` runner (rerun snippets, run tests by line, option documentation)
2015-03-19 14:27:01 +01:00
Arthur Neves
2f23f97b2e
Add a new-line to the end of route method generated code.
...
Fix regression on route method that was added by
bac812a7ef2660a2fe2ab00822e5e66228379822. The regression was that when
calling the `route` method, we were not appending a \n anymore.
[fixes #19316 ]
2015-03-18 10:33:59 -04:00
Yves Senn
d9bbafb2e7
run test_test.rb
using the bin/rails test
.
2015-03-18 09:52:19 +01:00
Arthur Neves
8017e6af31
Use Rails::TestRunner on rake test
2015-03-18 09:52:19 +01:00
Arthur Neves
f10c7e1849
Fix reporter test and verbose mode
2015-03-18 09:52:19 +01:00
Yves Senn
6ccbeb458a
move ENV["BACKTRACE"]
support into the TestRunner.
2015-03-18 09:52:19 +01:00
Yves Senn
ac5ead59ae
-p
, --pattern
to run tests using a pattern.
2015-03-18 09:52:19 +01:00
Yves Senn
f78708c180
use bin/rails t
runner in test_runner_test.rb
.
2015-03-18 09:52:18 +01:00
Arthur Neves
de94929d70
Fix relative dir call on test runner
2015-03-18 09:52:18 +01:00
Arthur Neves
3cc783b6bf
Add tests for runner#test_files method
2015-03-18 09:52:18 +01:00
Arthur Neves
b58c0914f4
Run multiple files on runner
2015-03-18 09:52:18 +01:00
Yves Senn
090c83672f
-e
/ --environment
for the test runner.
2015-03-18 09:52:18 +01:00
Yves Senn
f4ea8dda1b
move argument parsing into the Runner
.
2015-03-18 09:52:18 +01:00
Yves Senn
613bdd9d4c
get rid of NAMED_PATTERNS in favor of running a whole directory
2015-03-18 09:52:18 +01:00
Yves Senn
fb2dc2adca
document running a test by line number.
2015-03-18 09:52:17 +01:00
Yves Senn
7e9775bdb0
pluralize rerun snippet heading.
2015-03-18 09:52:17 +01:00
Yves Senn
ff79441d49
add tests for our minitest reporter.
2015-03-18 09:52:17 +01:00
Arthur Neves
ccee7eea8e
Show the right file when test raises
2015-03-18 09:52:17 +01:00
Arthur Neves
a71bcdb4f3
Move minitest plugin
...
Minitest Rails plugin should be loaded on test_help, so we report errors
even when not running from the runner.
Also fix the backtrace
2015-03-18 09:52:17 +01:00
Arthur Neves
739cfd5d90
Move some logic to runner
2015-03-18 09:52:17 +01:00
Arthur Neves
5ae2c7060f
Dont display Failed test if suite passed
2015-03-18 09:52:17 +01:00
Arthur Neves
d1a5460e3e
Better file:line parsing and filter method by file too
2015-03-18 09:52:17 +01:00
Arthur Neves
cf7ba1fbbd
no need to escape the method in a regex wrap, minitest does that for us
2015-03-18 09:52:16 +01:00
Arthur Neves
5d934caabb
If a nem given, use that name to filter the test
2015-03-18 09:52:16 +01:00
Arthur Neves
ff0a7611cf
Add test run by line, and report error by line
2015-03-18 09:52:16 +01:00
Yves Senn
c5532e06d9
spike of a OptionParser
backed test runner.
2015-03-18 09:52:16 +01:00
Semyon Pupkov
82a1680fb1
Fix deprecation warning in rails_info_controller tests
...
Use keyword arguments in request methods
2015-03-17 11:45:14 +05:00
yuuji.yaginuma
5f6fc9e389
add mailer suffix to comments for email previews
2015-03-15 08:57:06 +09:00
Rafael Mendonça França
814d4da48e
Merge pull request #19323 from naoty/rake_initializer
...
Add `rake initializer`
2015-03-13 14:55:53 -03:00
Naoto Kaneko
baa9ffb822
Add rake initializer
...
This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
2015-03-14 01:41:21 +09:00
Joshua Peek
9655cb1ce7
Update sprockets links to point to rails org
2015-03-13 10:55:50 -03:00
eileencodes
044f9ab7a4
Use def setup
instead of setup do
...
`setup do` creates unnecessary allocations of proc objects in callbacks.
This prevents that from happening and results in faster code.
2015-03-12 08:25:51 -04:00
Jeremy Kemper
d31c941413
Revert "Merge pull request #15476 from JacobEvelyn/master"
...
This introduces undesirable `Rails.logger` formatters (such as the syslog
formatter) onto a `Logger.new(STDERR)` for the console. The production
logger may be going elsewhere than standard io, so we can't presume to
reuse its formatter.
With syslog, this causes missing newlines in the console, so irb prompts
start at the end of the last log message.
We can work to expose the console formatter in another way to address
the original issue.
This reverts commit 026ce5ddf11c4cda0aae7f33a9266e54117db318, reversing
changes made to 6f0a69c5899ebdc892e2aa23e68e2604fa70fb73.
2015-03-11 15:06:42 -07:00
Peter Suschlik
f0768eba28
Target Ruby 2.2.1 in gemspecs
...
This is a follow-up to #19257
2015-03-09 09:56:26 +01:00
Matthew Draper
c96cb66351
Merge pull request #19221 from matthewd/random-tests
...
Run all our tests in random order
2015-03-06 23:02:49 +10:30
Aaron Patterson
798a14a638
pass a config to the route set
...
This way we can get the relative_url_root from the application without
setting another global value
2015-03-05 13:12:06 -08:00
Matthew Draper
b5eb0b6cc3
Revert "Leave all our tests as order_dependent! for now"
...
This reverts commit 2f52f969885b2834198de0045748436a4651a94e.
Conflicts:
actionmailer/test/abstract_unit.rb
actionview/test/abstract_unit.rb
activemodel/test/cases/helper.rb
activerecord/test/cases/helper.rb
activesupport/test/abstract_unit.rb
railties/test/abstract_unit.rb
2015-03-06 04:38:54 +10:30
Genadi Samokovarov
8ed0b89bbd
Revert work arounds for upstream Ruby 2.2.0 kwargs bug
...
The bug caused a segfault and you can find more info about it at:
https://bugs.ruby-lang.org/issues/10685 .
We did a couple of work arounds, but 2.2.1 rolled out and those aren't
needed anymore.
Here are the reverted commits:
- Revert "Work around for upstream Ruby bug #10685 ",
commit 707a433870e9e06af688f85a4aedc64a90791a64.
- Revert "Fix segmentation fault in ActionPack tests",
commit 22e0a22d5f98e162290d9820891d8191e720ad3b.
I'm also bumping the Ruby version check to 2.2.1 to prevent future
segfaults.
2015-03-05 17:39:22 +02:00
Robin Dupret
d969405acd
Some documentation edits [ci skip]
...
* Fix a few typos
* Wrap some lines around 80 chars
* Rephrase some statements
2015-03-05 14:18:09 +01:00
Aaron Patterson
37654d12ae
ask the routes objects for its Rack env key
...
this centralizes the logic for determining the script name key and drops
object allocations when calling `engine_script_name` (which is called on
each `url_for`).
2015-03-02 11:01:07 -08:00
Rafael Mendonça França
ed6be59624
Merge pull request #19173 from robin850/rbx-build
...
Improve the Rubinius build
2015-03-02 13:48:45 -03:00
Robin Dupret
670b2889a3
Avoid Ruby versions check on Rubinius
...
Rubinius is still targeting compliance with Ruby 2.1.0 but we are pretty
close to a green build so let's avoid this check for the moment.
2015-03-02 17:07:54 +01:00
Hyonjee Joo
beaf8cbad9
Rake restart task no longer loads entire Rails environment when run.
...
The restart task does not need access to models or other classes and
helpers from the application environment.
2015-03-02 10:25:41 -05:00
Akira Matsuda
293bd95c3e
Lines of code can be 100,000+ in a Rails app
...
Actually, our app has 400,000 LOC 💥
2015-03-01 17:57:03 +09:00
Hyonjee Joo
b181297ad7
Created rake restart task.
...
Fixes #18876 . Rake restart touches `tmp/restart.txt` to restart
application on next request. Updated tests and documentation
accordingly.
2015-02-26 15:26:59 -05:00
Richard Schneeman
f069b41321
Merge pull request #18434 from brainopia/change_filter_on_rails_info_routes
...
Change filter on /rails/info/routes to use an actual path regexp from rails
2015-02-26 12:59:43 -06:00
Rafael Mendonça França
026ce5ddf1
Merge pull request #15476 from JacobEvelyn/master
...
Use logger environment settings in Rails console.
2015-02-25 19:52:19 -03:00