[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#702666: rspec-instafail



Hi Hideki,

I was working on this package as there was no ITP but found there is a
git repo on pkg-ruby-extras alioth repo. Where you able to make some
progress on this? I got through till failing 2 tests with patching the
tests (see attached patch).

Running tests for ruby1.8 using debian/ruby-tests.rake ...
/usr/bin/ruby1.8 -S rspec ./spec/instafail_spec.rb
FF.....

Failures:

  1) RSpec::Instafail RSpec 1.x outputs failures at start of output
     Failure/Error: @output.should =~ /^\s*1\)\s*'x fails logically'/m
       expected: /^\s*1\)\s*'x fails logically'/m
            got: "  1) x fails logically\n     Failure/Error: 1.should
== 2\n       expected: 2\n            got: 1 (using ==)\n     #
./a_test.rb:5:in `block (2 levels) in <top (required)>'\n..*  2) x
raises a simple error\n     Failure/Error: raise 'shallow failure'\n
  RuntimeError:\n       shallow failure\n     # ./a_test.rb:20:in
`block (2 levels) in <top (required)>'\n  3) x raises a hidden error\n
    Failure/Error: raise error\n     ExceptionWrappingException:\n
  There is an error in this error.\n     # ./a_test.rb:26:in `block (2
levels) in <top (required)>'\n.\n\nPending:\n  x pends\n    # No
reason given\n    # ./a_test.rb:14\n\nFailures:\n\n  1) x fails
logically\n     Failure/Error: 1.should == 2\n       expected: 2\n
       got: 1 (using ==)\n     # ./a_test.rb:5:in `block (2 levels) in
<top (required)>'\n\n  2) x raises a simple error\n     Failure/Error:
raise 'shallow failure'\n     RuntimeError:\n       shallow failure\n
   # ./a_test.rb:20:in `block (2 levels) in <top (required)>'\n\n  3)
x raises a hidden error\n     Failure/Error: raise error\n
ExceptionWrappingException:\n       There is an error in this error.\n
    # ./a_test.rb:26:in `block (2 levels) in <top
(required)>'\n\nFinished in 0.00241 seconds\n7 examples, 3 failures, 1
pending\n\nFailed examples:\n\nrspec ./a_test.rb:4 # x fails
logically\nrspec ./a_test.rb:19 # x raises a simple error\nrspec
./a_test.rb:23 # x raises a hidden error\n" (using =~)
       Diff:
       @@ -1,2 +1,51 @@
       -/^\s*1\)\s*'x fails logically'/m
       +  1) x fails logically
       +     Failure/Error: 1.should == 2
       +       expected: 2
       +            got: 1 (using ==)
       +     # ./a_test.rb:5:in `block (2 levels) in <top (required)>'
       +..*  2) x raises a simple error
       +     Failure/Error: raise 'shallow failure'
       +     RuntimeError:
       +       shallow failure
       +     # ./a_test.rb:20:in `block (2 levels) in <top (required)>'
       +  3) x raises a hidden error
       +     Failure/Error: raise error
       +     ExceptionWrappingException:
       +       There is an error in this error.
       +     # ./a_test.rb:26:in `block (2 levels) in <top (required)>'
       +.
       +
       +Pending:
       +  x pends
       +    # No reason given
       +    # ./a_test.rb:14
       +
       +Failures:
       +
       +  1) x fails logically
       +     Failure/Error: 1.should == 2
       +       expected: 2
       +            got: 1 (using ==)
       +     # ./a_test.rb:5:in `block (2 levels) in <top (required)>'
       +
       +  2) x raises a simple error
       +     Failure/Error: raise 'shallow failure'
       +     RuntimeError:
       +       shallow failure
       +     # ./a_test.rb:20:in `block (2 levels) in <top (required)>'
       +
       +  3) x raises a hidden error
       +     Failure/Error: raise error
       +     ExceptionWrappingException:
       +       There is an error in this error.
       +     # ./a_test.rb:26:in `block (2 levels) in <top (required)>'
       +
       +Finished in 0.00241 seconds
       +7 examples, 3 failures, 1 pending
       +
       +Failed examples:
       +
       +rspec ./a_test.rb:4 # x fails logically
       +rspec ./a_test.rb:19 # x raises a simple error
       +rspec ./a_test.rb:23 # x raises a hidden error
     # ./spec/instafail_spec.rb:12

  2) RSpec::Instafail RSpec 1.x outputs errors in middle of output
     Failure/Error: @output.should =~ /\.\.\*\s*2\)\s*RuntimeError in
'x raises a simple error'/m
       expected: /\.\.\*\s*2\)\s*RuntimeError in 'x raises a simple error'/m
            got: "  1) x fails logically\n     Failure/Error: 1.should
== 2\n       expected: 2\n            got: 1 (using ==)\n     #
./a_test.rb:5:in `block (2 levels) in <top (required)>'\n..*  2) x
raises a simple error\n     Failure/Error: raise 'shallow failure'\n
  RuntimeError:\n       shallow failure\n     # ./a_test.rb:20:in
`block (2 levels) in <top (required)>'\n  3) x raises a hidden error\n
    Failure/Error: raise error\n     ExceptionWrappingException:\n
  There is an error in this error.\n     # ./a_test.rb:26:in `block (2
levels) in <top (required)>'\n.\n\nPending:\n  x pends\n    # No
reason given\n    # ./a_test.rb:14\n\nFailures:\n\n  1) x fails
logically\n     Failure/Error: 1.should == 2\n       expected: 2\n
       got: 1 (using ==)\n     # ./a_test.rb:5:in `block (2 levels) in
<top (required)>'\n\n  2) x raises a simple error\n     Failure/Error:
raise 'shallow failure'\n     RuntimeError:\n       shallow failure\n
   # ./a_test.rb:20:in `block (2 levels) in <top (required)>'\n\n  3)
x raises a hidden error\n     Failure/Error: raise error\n
ExceptionWrappingException:\n       There is an error in this error.\n
    # ./a_test.rb:26:in `block (2 levels) in <top
(required)>'\n\nFinished in 0.00241 seconds\n7 examples, 3 failures, 1
pending\n\nFailed examples:\n\nrspec ./a_test.rb:4 # x fails
logically\nrspec ./a_test.rb:19 # x raises a simple error\nrspec
./a_test.rb:23 # x raises a hidden error\n" (using =~)
       Diff:
       @@ -1,2 +1,51 @@
       -/\.\.\*\s*2\)\s*RuntimeError in 'x raises a simple error'/m
       +  1) x fails logically
       +     Failure/Error: 1.should == 2
       +       expected: 2
       +            got: 1 (using ==)
       +     # ./a_test.rb:5:in `block (2 levels) in <top (required)>'
       +..*  2) x raises a simple error
       +     Failure/Error: raise 'shallow failure'
       +     RuntimeError:
       +       shallow failure
       +     # ./a_test.rb:20:in `block (2 levels) in <top (required)>'
       +  3) x raises a hidden error
       +     Failure/Error: raise error
       +     ExceptionWrappingException:
       +       There is an error in this error.
       +     # ./a_test.rb:26:in `block (2 levels) in <top (required)>'
       +.
       +
       +Pending:
       +  x pends
       +    # No reason given
       +    # ./a_test.rb:14
       +
       +Failures:
       +
       +  1) x fails logically
       +     Failure/Error: 1.should == 2
       +       expected: 2
       +            got: 1 (using ==)
       +     # ./a_test.rb:5:in `block (2 levels) in <top (required)>'
       +
       +  2) x raises a simple error
       +     Failure/Error: raise 'shallow failure'
       +     RuntimeError:
       +       shallow failure
       +     # ./a_test.rb:20:in `block (2 levels) in <top (required)>'
       +
       +  3) x raises a hidden error
       +     Failure/Error: raise error
       +     ExceptionWrappingException:
       +       There is an error in this error.
       +     # ./a_test.rb:26:in `block (2 levels) in <top (required)>'
       +
       +Finished in 0.00241 seconds
       +7 examples, 3 failures, 1 pending
       +
       +Failed examples:
       +
       +rspec ./a_test.rb:4 # x fails logically
       +rspec ./a_test.rb:19 # x raises a simple error
       +rspec ./a_test.rb:23 # x raises a hidden error
     # ./spec/instafail_spec.rb:16

Finished in 0.61483 seconds
7 examples, 2 failures

Failed examples:

rspec ./spec/instafail_spec.rb:11 # RSpec::Instafail RSpec 1.x outputs
failures at start of output
rspec ./spec/instafail_spec.rb:15 # RSpec::Instafail RSpec 1.x outputs
errors in middle of output
rake aborted!
/usr/bin/ruby1.8 -S rspec ./spec/instafail_spec.rb failed

Attachment: remove-rubygems-bundler-require.patch
Description: Binary data


Reply to: