-
Notifications
You must be signed in to change notification settings - Fork 105
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
(PDK-674) UX Improvement for listing unit test files. #349
Conversation
spec/unit/pdk/cli/test/unit_spec.rb
Outdated
@@ -29,17 +29,53 @@ | |||
expect(PDK::Test::Unit).to receive(:list).with(no_args).once.and_return([]) | |||
end | |||
|
|||
it { expect { test_unit_cmd.run_this(args) }.to output(%r{No examples found}m).to_stdout } | |||
it { expect { test_unit_cmd.run_this(args) }.to output(%r{No test files with examples found}m).to_stdout } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the 'm' do in these expects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The m
allows the regex to be matched across multiple lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from me, output looks much better 👍
Pinning the license_finder gem dep to 3.0.4, because the newer versions depend on blankslate which doesn't pass the license_finder scan for approved licenses.
This PR Improves how
pdk test unit --list
outputs unit test list. It will display a list of test files that contain examples. This output should contain file paths that can then be passed into--tests=
as a comma-separated list.This PR also adds a
--verbose
or-v
option to display more information about the examples in each test file.