rubyrspecrspec2allureparallel-testing

How do I get the whole error backtrace for rspec?


Currently I am using parallel tests rspec allure 0.8.0

After I run the tests I get the following error:

RSpec::Core::MultipleExceptionError

I need the whole backtrace of the error. Is it some parameter that I need to pass to the command that I use to run and is there a permanent way so that it always prints the whole error


Solution

  • You have two options, to define a helper with that attribute or in command line

    ## spec/spec_helper.rb
    config.full_backtrace = true # false to dismiss
    

    or in the command line

    $ rspec spec/folder/your_spec.rb --backtrace