Project

General

Profile

Actions

Refactor #24293

closed

Not able to run single tests via the line number

Added by Peter Lehwess almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
No
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

Actions

Also available in: Atom PDF