Skip to content
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

Can't get FailuresLogger and RuntimeLogger to log during the same run #922

Closed
dfuentes77 opened this issue Oct 24, 2023 · 1 comment
Closed

Comments

@dfuentes77
Copy link

I have this in my .rspec_parallel, but the runtime log file doesn't get created. I have to remove the FailuresLogger for the Runtime log to show up. I thought multiple loggers are supported.

--color
--profile
--require rails_helper
--format progress
--format ParallelTests::RSpec::FailuresLogger --out tmp/failing_specs<%= ENV['TEST_ENV_NUMBER'] %>.log
--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log

rspec 3.12.0
parallel_tests 3.13.0

@grosser
Copy link
Owner

grosser commented Oct 25, 2023

unable to reproduce

# spec/a_spec.rb
describe "a" do
  it "a" do
    sleep 1
  end

  it "a2" do
    expect(1).to(eq(2))
  end
end

# spec/b_spec.rb
describe "b" do
  it "b" do
    sleep 1
  end
end
bundle exec parallel_rspec spec/
ls tmp/
failing_specs.log          failing_specs2.log         parallel_runtime_rspec.log

so both files are there

@grosser grosser closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants