1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/test_unit
Kasper Timm Hansen 88881d2b50 Don't run all tests when files end in a colon.
If running `bin/rails t test/models/bunny_test.rb:` we'd implicitly run all the
tests in the bunny test. I now highly doubt that people would ever put in a line
filter without a line *and* want that to mean run all tests in that file.

Instead, change regex to require a line digit after the colon, so runs without a
line at the end would fail to require the test file.

This also has the side benefit of breaking requiring a file with many colons:
`bin/rails t test/models/bunny_test.rb:::::::::::::4`

Think this means I've had enough colonoscopy to last me through the year :)
2016-01-18 21:37:12 +01:00
..
line_filtering.rb Added multiple line filters support for test runner 2016-01-10 22:37:01 +05:30
minitest_plugin.rb delete only unnecessary reporter 2016-01-11 12:36:09 +09:00
railtie.rb Extract line filtering to Railties. 2016-01-09 17:21:21 +01:00
reporter.rb Move test coloring closer to where it's used. 2015-12-23 23:51:21 +01:00
test_requirer.rb Don't run all tests when files end in a colon. 2016-01-18 21:37:12 +01:00
testing.rake bring back TEST env for rake test. 2016-01-12 19:26:05 +01:00