Skip to content

Extract multiple failed lines by parsing Ruby

gitlab-qa-bot requested to merge extract-failed-lines-by-parsing-ruby into master

Created by: yujinakayama

For https://github.com/rspec/rspec-expectations/issues/790

With the following failing example:

expect('RSpec').to be_a(String)
              .and start_with('R')
              .and end_with('z')

Before

Failures:

  1) failure snippet is an example
     Failure/Error: expect('RSpec').to be_a(String)
       expected "RSpec" to end with "z"
     # ./spec/test_spec.rb:3:in `block (2 levels) in <top (required)>'

After

Failures:

  1) failure snippet is an example
     Failure/Error:
       expect('RSpec').to be_a(String)
                     .and start_with('R')
                     .and end_with('z')

       expected "RSpec" to end with "z"
     # ./spec/test_spec.rb:3:in `block (2 levels) in <top (required)>'

Merge request reports