Skip to content

Conversation

keymastervn
Copy link

@keymastervn keymastervn commented Jul 20, 2025

Address #598

Checklist

  • Feature branch is up-to-date with master (if not - rebase it).
  • Added tests.
  • Added an entry to the Changelog if the new
    code introduces user-observable changes.
  • Update Readme.md when cli options are changed

/(_spec\.rb|\.feature)$/
end

def find_tests(tests, options = {})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we reuse super somehow so we don't have to copy-paste that much ?


module ParallelTests
module RSpec
class RuntimeJsonFormatter
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this ?

Copy link
Owner

@grosser grosser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain what this does to solves the issue ?

ParallelTests::RSpec::Runner.send(:find_tests, *args)
end

it "finds turnip feature files" do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happened to the old tests ?

it "finds turnip feature files" do
with_files(['a/test.feature']) do |root|
expect(call(["#{root}/"])).to eq(["#{root}/a/test.feature"])
context 'without --tag' do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests don't really test the outcome, but how things pass around under the hood, so kind of easy to break and hard to understand
... we we instead test an outcome like that it runs the tests that have the given tag and not the others ?

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

Successfully merging this pull request may close these issues.

2 participants