aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/test_unit
Commit message (Collapse)AuthorAgeFilesLines
* modify to pass the correct argument to the test runner from rakeyuuji.yaginuma2015-09-082-6/+15
| | | | | | | | 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.
* raise LoadError when a non-existent file or directory is specified to the ↵yuuji.yaginuma2015-09-071-1/+1
| | | | | | | | test runner Currently, if a file or directory that does not exist was specified in the test runner, that argument is ignored. This commit has been modified to cause an error if there is no file or directory.
* make `ENV` a required argumentyuuji.yaginuma2015-08-291-1/+1
|
* Allow Minitest to load plugins. Fixes #21102Oleg Sukhodolsky2015-08-031-0/+1
|
* Avoid crashing when minitest-rails is loaded.Victor Costan2015-07-011-3/+3
| | | | | | | | The improvments to the test runner's integration with minitest in commit b6fc8e25a10cc4abdd03018798b180270d6c5d7f add methods to the Minitest module that refer to the Rails module. Unfortunately, when the minitest-rails gem is loaded, the reference is incorrectly resolved to the Minitest::Rails module.
* do not show "Failed tests" message when a failed test is notyuuji.yaginuma2015-06-231-3/+9
|
* make it possible to customize the executable inside rereun snippets.Yves Senn2015-06-131-1/+5
| | | | | | | | | | | | | | | | | | | In the Rails repository we use a `bin/test` executable to run our tests. However the rerun snippets still included `bin/rails test`: BEFORE: ``` Failed tests: bin/rails test test/cases/adapters/postgresql/schema_test.rb:91 ``` AFTER: ``` Failed tests: bin/test test/cases/adapters/postgresql/schema_test.rb:91 ```
* Improve test runner's Minitest integration.Kasper Timm Hansen2015-06-045-152/+85
| | | | | | | | | | | 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/
* Remove unused private classesRafael Mendonça França2015-05-031-126/+0
| | | | | | | The usage of these classes where removed at 8017e6af31caa58a58787274ff0ca01397219e49. cc @arthurnn @senny
* Merge pull request #19441 from y-yagi/use_existArthur Nogueira Neves2015-03-211-1/+1
|\ | | | | use `Dir.exist?` instead of deprecated `Dir.exists?`
| * use `Dir.exist?` instead of deprecated `Dir.exists?`yuuji.yaginuma2015-03-211-1/+1
| |
* | Merge pull request #19445 from prathamesh-sonpatki/rm-ostructArthur Nogueira Neves2015-03-211-1/+0
|\ \ | | | | | | Removed requiring ostruct because its unused
| * | Removed requiring ostruct because its unusedPrathamesh Sonpatki2015-03-211-1/+0
| |/
* / Fix typos in test runner's help outputPrathamesh Sonpatki2015-03-211-2/+2
|/
* Use absolute path on find_method location for the runnerArthur Neves2015-03-191-1/+1
|
* 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
|
* Fix reporter test and verbose modeArthur Neves2015-03-181-1/+1
|
* move `ENV["BACKTRACE"]` support into the TestRunner.Yves Senn2015-03-182-3/+2
|
* `-p`, `--pattern` to run tests using a pattern.Yves Senn2015-03-181-0/+4
|
* use `bin/rails t` runner in `test_runner_test.rb`.Yves Senn2015-03-181-2/+2
|
* Fix relative dir call on test runnerArthur Neves2015-03-181-5/+10
|
* Add tests for runner#test_files methodArthur Neves2015-03-181-7/+7
|
* Run multiple files on runnerArthur Neves2015-03-181-4/+5
|
* `-e` / `--environment` for the test runner.Yves Senn2015-03-181-1/+7
|
* move argument parsing into the `Runner`.Yves Senn2015-03-181-0/+5
|
* get rid of NAMED_PATTERNS in favor of running a whole directoryYves Senn2015-03-181-7/+4
|
* document running a test by line number.Yves Senn2015-03-181-0/+7
|
* pluralize rerun snippet heading.Yves Senn2015-03-181-1/+1
|
* Show the right file when test raisesArthur Neves2015-03-181-4/+3
|
* Move minitest pluginArthur Neves2015-03-182-15/+19
| | | | | | | Minitest Rails plugin should be loaded on test_help, so we report errors even when not running from the runner. Also fix the backtrace
* Move some logic to runnerArthur Neves2015-03-181-0/+10
|
* Dont display Failed test if suite passedArthur Neves2015-03-181-0/+1
|
* Better file:line parsing and filter method by file tooArthur Neves2015-03-181-11/+19
|
* If a nem given, use that name to filter the testArthur Neves2015-03-181-5/+1
|
* Add test run by line, and report error by lineArthur Neves2015-03-182-0/+49
|
* spike of a `OptionParser` backed test runner.Yves Senn2015-03-181-0/+83
|
* 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
|
* `:nodoc: all` does not remove the constants from the API. [ci skip]Yves Senn2014-06-241-2/+2
| | | | | Need to add individual `:nodoc:` for nested classes / modules to completely remove the constants from the API.
* Revert "Merge pull request #12778 from etehtsea/rake-default-fix"Yves Senn2014-05-281-1/+1
| | | | | | | | | | | | | This reverts commit ec0a2b57f67c9153cb5f7bbe2a3f66d13fe64bdd, reversing changes made to a8bd7b16260c217290ef8fe3a166fcceac442c62. This reverts commit 555ec36522011862c03b483c53be32410594a51e This reverts commit 555ec36522011862c03b483c53be32410594a51e By default, Rails uses the `default` Rake task to run all tests. This commit changed the environment of the default task to `development`. This clears the development database and has other negative consequences.
* Merge pull request #12778 from etehtsea/rake-default-fixRafael Mendonça França2014-03-281-1/+1
|\ | | | | | | | | Don't load test env by default. Closes #13241
| * Don't load test env by defaultKonstantin Shabanov2013-11-111-1/+1
| |
* | 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-252-15/+45
| | | | | I'm defining a new class which modularizes how the `rake test` tasks are defined and invoked.