Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * Don't eagerly require Rails' minitest plugin. | Kasper Timm Hansen | 2017-07-10 | 1 | -0/+140 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By making the Rails minitest behave like a standard minitest plugin we're much more likely to not break when people use other minitest plugins. Like minitest-focus and pride. To do this, we need to behave like minitest: require files up front and then perform the plugin behavior via the at_exit hook. This also saves us a fair bit of wrangling with test file loading. Finally, since the environment and warnings options have to be applied as early as possible, and since minitest loads plugins at_exit, they have to be moved to the test command. * Don't expect the root method. It's likely this worked because we eagerly loaded the Rails minitest plugin and that somehow defined a root method on `Rails`. * Assign a backtrace to failed exceptions. Otherwise Minitest pukes when attempting to filter the backtrace (which Rails' backtrace cleaner then removes). Means the exception message test has to be revised too. This is likely caused by the rails minitest plugin now being loaded for these tests and assigning a default backtrace cleaner. | ||||
* | Improve test runner's Minitest integration. | Kasper Timm Hansen | 2015-06-04 | 1 | -137/+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/ | ||||
* | Merge pull request #19441 from y-yagi/use_exist | Arthur Nogueira Neves | 2015-03-21 | 1 | -1/+1 |
|\ | | | | | use `Dir.exist?` instead of deprecated `Dir.exists?` | ||||
| * | use `Dir.exist?` instead of deprecated `Dir.exists?` | yuuji.yaginuma | 2015-03-21 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #19445 from prathamesh-sonpatki/rm-ostruct | Arthur Nogueira Neves | 2015-03-21 | 1 | -1/+0 |
|\ \ | | | | | | | Removed requiring ostruct because its unused | ||||
| * | | Removed requiring ostruct because its unused | Prathamesh Sonpatki | 2015-03-21 | 1 | -1/+0 |
| |/ | |||||
* / | Fix typos in test runner's help output | Prathamesh Sonpatki | 2015-03-21 | 1 | -2/+2 |
|/ | |||||
* | Use absolute path on find_method location for the runner | Arthur Neves | 2015-03-19 | 1 | -1/+1 |
| | |||||
* | move `ENV["BACKTRACE"]` support into the TestRunner. | Yves Senn | 2015-03-18 | 1 | -1/+1 |
| | |||||
* | `-p`, `--pattern` to run tests using a pattern. | Yves Senn | 2015-03-18 | 1 | -0/+4 |
| | |||||
* | use `bin/rails t` runner in `test_runner_test.rb`. | Yves Senn | 2015-03-18 | 1 | -2/+2 |
| | |||||
* | Fix relative dir call on test runner | Arthur Neves | 2015-03-18 | 1 | -5/+10 |
| | |||||
* | Add tests for runner#test_files method | Arthur Neves | 2015-03-18 | 1 | -7/+7 |
| | |||||
* | Run multiple files on runner | Arthur Neves | 2015-03-18 | 1 | -4/+5 |
| | |||||
* | `-e` / `--environment` for the test runner. | Yves Senn | 2015-03-18 | 1 | -1/+7 |
| | |||||
* | move argument parsing into the `Runner`. | Yves Senn | 2015-03-18 | 1 | -0/+5 |
| | |||||
* | get rid of NAMED_PATTERNS in favor of running a whole directory | Yves Senn | 2015-03-18 | 1 | -7/+4 |
| | |||||
* | document running a test by line number. | Yves Senn | 2015-03-18 | 1 | -0/+7 |
| | |||||
* | Move minitest plugin | Arthur Neves | 2015-03-18 | 1 | -15/+4 |
| | | | | | | | 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 runner | Arthur Neves | 2015-03-18 | 1 | -0/+10 |
| | |||||
* | Better file:line parsing and filter method by file too | Arthur Neves | 2015-03-18 | 1 | -11/+19 |
| | |||||
* | If a nem given, use that name to filter the test | Arthur Neves | 2015-03-18 | 1 | -5/+1 |
| | |||||
* | Add test run by line, and report error by line | Arthur Neves | 2015-03-18 | 1 | -0/+27 |
| | |||||
* | spike of a `OptionParser` backed test runner. | Yves Senn | 2015-03-18 | 1 | -0/+83 |