Project

General

Profile

Refactor #24293

Not able to run single tests via the line number

Added by Peter Lehwess 5 months ago. Updated 5 months ago.

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

Revision 7fbc4dfa (diff)
Added by Peter Lehwess 5 months ago

Fixes #24293 - Fix ability to run single tests

History

#1 Updated by The Foreman Bot 5 months 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 5 months ago

  • Target version set to 1.20.0
  • Category set to Tests

#3 Updated by Peter Lehwess 5 months ago

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

#4 Updated by Marek Hulán 5 months ago

  • Fixed in Releases 1.20.0 added

Also available in: Atom PDF