Refactor #24293
Not able to run single tests via the line number
Pull request:
Fixed in Releases:
Found in Releases:
Description
Rails 5 gave us the ability to run single minitest cases via the line number. For example:
`bundle exe rails test test/unit/authorizer_test.rb:14`
This however does not work currently.
Also possibly related, when tests fail then the output at the end gives us:
```
Focus on failing tests:
ruby ../../../.rvm/gems/ruby-2.4.1/gems/minitest-spec-rails-5.4.0/lib/minitest-spec-rails/dsl.rb -l 27
ruby ../../../.rvm/gems/ruby-2.4.1/gems/minitest-spec-rails-5.4.0/lib/minitest-spec-rails/dsl.rb -l 27
```
Here we should actually be seeing the test location and line number, not that of the gem :D
Associated revisions
History
#1
Updated by The Foreman Bot over 1 year ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5856 added
#2
Updated by Ewoud Kohl van Wijngaarden over 1 year ago
- Target version set to 1.20.0
- Category set to Tests
#3
Updated by Peter Lehwess over 1 year ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset 7fbc4dfaf3c0f1c5b58bf1088483c8e6447383c2.
#4
Updated by Marek Hulán over 1 year ago
- Fixed in Releases 1.20.0 added
Fixes #24293 - Fix ability to run single tests