-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add csv and logger gems to remove warnings #308
Changes from all commits
60dbf2e
e23bbee
4c369ca
810b092
e3703ec
e761f3b
3f0fbfd
b8c54a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--format progress | ||
--force-color | ||
--color | ||
--order rand | ||
--profile 5 | ||
--profile 3 | ||
--require rails_helper |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
ENV['RAILS_ENV'] = 'test' | ||
|
||
$stdout.sync = true | ||
$stderr.sync = true | ||
|
||
# Enable YJIT if we have it compiled in | ||
if defined?(RubyVM::YJIT) && RubyVM::YJIT.respond_to?(:enable) | ||
RubyVM::YJIT.enable | ||
|
@@ -8,8 +13,6 @@ | |
warn '[ 𐄂 ] YJIT is not enabled' | ||
end | ||
|
||
ENV['RAILS_ENV'] = 'test' | ||
|
||
require 'simplecov' | ||
SimpleCov.start 'rails' | ||
|
||
|
@@ -22,4 +25,11 @@ | |
config.expect_with(:rspec) do |c| | ||
c.syntax = %i[should expect] | ||
end | ||
|
||
config.around do |example| | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All good to have this in |
||
# 10 seconds should be more than enough for ANY spec | ||
Timeout.timeout(ENV.fetch('RSPEC_TIMEOUT', 10).to_i) do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Allow eg CI to override the timeout if necessary. |
||
example.run | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so that if RSpec hangs on Github Action, we see which one.