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 #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5856 added
Actions #2

Updated by Ewoud Kohl van Wijngaarden almost 6 years ago

  • Category set to Tests
  • Target version set to 1.20.0
Actions #3

Updated by Peter Lehwess almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Marek Hulán almost 6 years ago

  • Fixed in Releases 1.20.0 added
Actions

Also available in: Atom PDF