Skip to content

Use PARALLEL_TESTS_EXECUTABLE environmental variable if it's provided - #66

Merged
ilyazub merged 2 commits into
serpapi:masterfrom
hsbt:support-env-executable
Mar 7, 2025
Merged

ilyazub merged 2 commits into
serpapi:masterfrom
hsbt:support-env-executable

Conversation

@hsbt

@hsbt hsbt commented Dec 4, 2024

Copy link
Copy Markdown
Contributor

👋 Thank you for maintaining turbo_tests.

I would like to use turbo_tests on ruby/ruby same as rubygems/rubygems for testing bundler. see ruby/ruby#12250.

We used parallel_tests because turbo_tests didn't support ENV["PARALLEL_TESTS_EXECUTABLE"] for custom executable on parallel_tests. I added new condition for that around command_name.

How about this? Thank you for reading this.

@deivid-rodriguez

Copy link
Copy Markdown
Contributor

Should this be RSPEC_EXECUTABLE or something like that?

My understanding is that PARALLEL_TESTS_EXECUTABLE is a parallel_tests thing that helps in environments where ruby needs to be run differently (like in ruby-core test setup), but the way it's implemented here it's replacing rspec, so the consumer of this library will need to include some command line to help running rspec in the ENV, right?

@hsbt

hsbt commented Dec 9, 2024

Copy link
Copy Markdown
Contributor Author

Should this be RSPEC_EXECUTABLE or something like that?

I have no strong opinion about that. RSPEC_EXECUTABLE is okay to me.

My understanding is that PARALLEL_TESTS_EXECUTABLE is a parallel_tests thing that helps in environments where ruby needs to be run differently (like in ruby-core test setup), but the way it's implemented here it's replacing rspec, so the consumer of this library will need to include some command line to help running rspec in the ENV, right?

Yes. ruby-core need to use miniruby for testing bundler before ruby installation. The current implementation forces to use rspec by gem install or bundle install.

@ilyazub

ilyazub commented Mar 7, 2025

Copy link
Copy Markdown
Collaborator

@hsbt Thank you for all the work and for your kind words!

I agree with @deivid-rodriguez and prefer RSPEC_EXECUTABLE variable as it replaces bundle exec rspec.

I'll commit this change and merge this PR.

Comment thread lib/turbo_tests/runner.rb Resolved
@ilyazub
ilyazub merged commit ef03ee0 into serpapi:master Mar 7, 2025
@hsbt
hsbt deleted the support-env-executable branch March 10, 2025 01:06
@hsbt

hsbt commented Mar 10, 2025

Copy link
Copy Markdown
Contributor Author

@ilyazub Thanks for merging this.

pboling pushed a commit to galtzo-floss/turbo_tests2 that referenced this pull request Apr 5, 2026
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.

3 participants