aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/test_unit
Commit message (Collapse)AuthorAgeFilesLines
* Should escape meta characters in regexpRyuta Kamizono2017-05-071-5/+5
|
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-30/+30
|
* applies new string literal convention in railties/testXavier Noria2016-08-061-8/+8
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* modify to `error` also abort when specify fail fast optionyuuji.yaginuma2016-02-171-3/+14
|
* fix more failing tests due to 07e422f ... :pray:Yves Senn2016-02-151-2/+2
|
* Add colored output to the new test reporter.Lucas Mazza2015-12-221-3/+35
|
* display detailed information in inline reportingyuuji.yaginuma2015-12-211-3/+6
| | | | | | | | | | | | | | | | | | | | | The errors message only was not displayed, as if it did not use the inline reporting, modified to also information the method name and the like in error are displayed. ``` # before Failed assertion, no message given. bin/rails test test/models/user_test.rb:5 ``` ``` # after Failure: UserTest#test_the_truth: Failed assertion, no message given. bin/rails test test/models/user_test.rb:5 ```
* Don't match specific line numbers in reporter tests.Kasper Timm Hansen2015-11-121-4/+4
| | | | The overall syntax of the file path is more important, not the exact line it was on.
* Output inline is set to true in the plugin.Kasper Timm Hansen2015-10-071-2/+2
| | | | | | Change the reporter to just read the option. Pass output_inline where needed in tests.
* Add fail fast to test runner.Kasper Timm Hansen2015-09-291-0/+24
| | | | | Passing `--fail-fast` to the test runner will now abort the test run on the first failure. The run continues on any unexpected errors.
* Add inline failure reporting to test runner.Kasper Timm Hansen2015-09-281-1/+36
| | | | | | | | | Any failures or errors will be reported inline during the run by default. Skipped tests will be reported if run in verbose mode. Any result is output with failure messages and a rerun snippet for that test. Rerun snippets won't be output after a run, unless `--defer-output` is passed.
* do not show "Failed tests" message when a failed test is notyuuji.yaginuma2015-06-231-0/+1
|
* remove unused variable in reporter testyuuji.yaginuma2015-06-221-1/+0
|
* make it possible to customize the executable inside rereun snippets.Yves Senn2015-06-131-0/+14
| | | | | | | | | | | | | | | | | | | 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-041-111/+0
| | | | | | | | | | | 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/
* Use absolute path on find_method location for the runnerArthur Neves2015-03-191-4/+5
|
* Fix reporter test and verbose modeArthur Neves2015-03-181-9/+7
|
* move `ENV["BACKTRACE"]` support into the TestRunner.Yves Senn2015-03-181-0/+10
|
* use `bin/rails t` runner in `test_runner_test.rb`.Yves Senn2015-03-181-4/+3
|
* Fix relative dir call on test runnerArthur Neves2015-03-181-10/+14
|
* Add tests for runner#test_files methodArthur Neves2015-03-181-0/+14
|
* Run multiple files on runnerArthur Neves2015-03-181-2/+16
|
* `-e` / `--environment` for the test runner.Yves Senn2015-03-181-0/+14
|
* get rid of NAMED_PATTERNS in favor of running a whole directoryYves Senn2015-03-181-0/+8
|
* add tests for our minitest reporter.Yves Senn2015-03-181-0/+76
|
* Better file:line parsing and filter method by file tooArthur Neves2015-03-181-0/+26
|
* spike of a `OptionParser` backed test runner.Yves Senn2015-03-181-0/+21