-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rspec crash on test failure #15
Comments
@pderouen We shouldn't need legacy formatters, I removed this line in all of my apps. Everyone else agree? |
It sure seems like it's not necessary. But, I don't know what it's use would be. Unless there's a need to investigate further, I will submit a pull request to remove legacy formatters so that new apps don't start their life with runtime errors when a spec test fails. |
Hi all-- am seeing this also in my latest PR on origentesters. Should we comment it out in |
Tried doing what is being done in origen core here, which works fine when running |
# require "rspec/legacy_formatters"
require 'rspec/expectations'
extend RSpec::Matchers
require "#{Origen.top}/spec/format/origen_formatter" This is probably what needs to happen for things to play nicely with the latest Rspec, can you give it a try @redxeth |
Actually figured out that :
works great! Origen core must be loading rspec but most apps don't (they load rspec_core directly?). |
for older versions of rspec_core. This was causing crashes upon spec fail. refer to Origen-SDK/origen_app_generators#15
@pderouen should we test out my fix on another app before deciding to PR the app generator and update it to support? |
Rspec crashes when a test fails. Commenting out this line prevents the crash and doesn't appear to affect functionality at all
origen_app_generators/spec/spec_helper.rb
Line 23 in 5ba9d89
The text was updated successfully, but these errors were encountered: