1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

20 commits

Author SHA1 Message Date
Kasper Timm Hansen
49eefe123a Don't match specific line numbers in reporter tests.
The overall syntax of the file path is more important, not the exact line it was on.
2015-11-12 21:22:40 +01:00
Kasper Timm Hansen
54f3a18eec Output inline is set to true in the plugin.
Change the reporter to just read the option.

Pass output_inline where needed in tests.
2015-10-07 22:49:41 +02:00
Kasper Timm Hansen
2310fb9d81 Add fail fast to test runner.
Passing `--fail-fast` to the test runner will now abort the test run
on the first failure. The run continues on any unexpected errors.
2015-09-29 08:37:33 +02:00
Kasper Timm Hansen
64a3b09b40 Add inline failure reporting to test runner.
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.
2015-09-28 20:30:03 +02:00
yuuji.yaginuma
1d3e0f5872 do not show "Failed tests" message when a failed test is not 2015-06-23 07:53:17 +09:00
yuuji.yaginuma
3bcb637eab remove unused variable in reporter test 2015-06-22 08:04:53 +09:00
Yves Senn
2e59604909 make it possible to customize the executable inside rereun snippets.
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
```
2015-06-13 11:58:43 +02:00
Kasper Timm Hansen
b6fc8e25a1 Improve test runner's Minitest integration.
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/
2015-06-04 20:57:08 +02:00
Arthur Neves
a9eb12393f Use absolute path on find_method location for the runner 2015-03-19 10:15:03 -04: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
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
613bdd9d4c get rid of NAMED_PATTERNS in favor of running a whole directory 2015-03-18 09:52:18 +01:00
Yves Senn
ff79441d49 add tests for our minitest reporter. 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
Yves Senn
c5532e06d9 spike of a OptionParser backed test runner. 2015-03-18 09:52:16 +01:00