Closed swrobel closed 3 years ago
@swrobel Thanks for the bug report! I'll fix it in the next month.
@swrobel Can you share a minimal reproducible example? It works on a single file in a project I'm working on.
$ bundle exec turbo_tests -f d spec/search/google_jobs/job_id_spec.rb
1 processes for 1 specs, ~ 1 specs per process
has htidocid extracted
is extracted
Finished in 5.08 seconds (files took 0 seconds to load)
2 examples, 0 failures
Duplicated Using recorded test runtime
is the other bug.
RSpec.describe "Top-level context" do
describe "#instance_method" do
it "does what it's supposed to" do
expect(true).to be_truthy
end
it "doesn't do what it isn't supposed to" do
expect(false).not_to be_truthy
end
end
end
Example runs:
$ rspec spec/test_spec.rb --format documentation
Randomized with seed 55944
Top-level context
#instance_method
does what it's supposed to
doesn't do what it isn't supposed to
Finished in 0.00685 seconds (files took 0.27799 seconds to load)
2 examples, 0 failures
Randomized with seed 55944
$ bundle exec turbo_tests spec/test_spec.rb -f d
1 processes for 1 specs, ~ 1 specs per process
does what it's supposed to
doesn't do what it isn't supposed to
Finished in 0.83558 seconds (files took 0 seconds to load)
2 examples, 0 failures
$ bundle exec turbo_tests spec/test_spec.rb -f d 1 processes for 1 specs, ~ 1 specs per process does what it's supposed to doesn't do what it isn't supposed to Finished in 0.83558 seconds (files took 0 seconds to load) 2 examples, 0 failures
@swrobel So it works with the single spec file or do I miss something?
Please note the difference in output between the two runs. These context lines are missing:
Top-level context
#instance_method
Please note the difference in output between the two runs. These context lines are missing:
Top-level context #instance_method
Thanks, I've missed that. I'll take a look and try to fix it.
@ilyazub @swrobel it seems this one might be closed now cause of https://github.com/serpapi/turbo_tests/pull/7
@ilyazub @swrobel it seems this one might be closed now cause of #7
Yes, this should be fixed now.
Interestingly, I had to run the entire
spec/models
folder because running a single file didn't work, unlike using parallel_tests directly.