Skip to content

Conversation

@johvet
Copy link
Contributor

@johvet johvet commented May 8, 2025

This PR expands the --specify-groups option so it can also receive its value from standard input. This avoids problems with command line argument limits of the shell in situations with many thousands of specs.

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

Comment on lines +127 to +132
context 'with specific groups provided through STDIN' do
it "groups specify_groups as specified when specify_groups is just one spec" do
allow($stdin).to receive(:read).and_return("1\n")

expect(call(3, specify_groups: '-')).to eq([["1"], ["2", "5"], ["3", "4"]])
end
Copy link
Owner

Choose a reason for hiding this comment

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

don't think we need to copy-paste all the existing tests, 1 test to cover this edge-case should be enough ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I felt it would be good to cover the same input scenarios, to ensure it makes no difference whether data is directly provided or retrieved from stdin. But I am totally open to amend this if you feel strong.

Copy link
Owner

Choose a reason for hiding this comment

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

I'll take care of it 👍

@grosser grosser merged commit 5a511b2 into grosser:master May 9, 2025
12 of 13 checks passed
@grosser
Copy link
Owner

grosser commented May 9, 2025

5.2.0

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