Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 768
The Rookie Avatar asked Feb 05 '23 07:02

The Rookie


1 Answers

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 
like image 101
anquegi Avatar answered Feb 15 '23 21:02

anquegi