Skip to content
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

OSOE-466: Configuration option to filter tests #99

Merged
merged 9 commits into from
Nov 13, 2022
Merged

Conversation

Piedone
Copy link
Member

@Piedone Piedone commented Nov 11, 2022

Comment on lines 47 to 48
[string]::IsNullOrEmpty($Filter) ? '' : "--filter"
[string]::IsNullOrEmpty($Filter) ? '' : $Filter
Copy link
Member

Choose a reason for hiding this comment

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

[string]::IsNullOrEmpty is redundant, also the string quotes are inconsistent.

Suggested change
[string]::IsNullOrEmpty($Filter) ? '' : "--filter"
[string]::IsNullOrEmpty($Filter) ? '' : $Filter
$Filter ? "" : "--filter"
$Filter ? "" : $Filter

Copy link
Member Author

Choose a reason for hiding this comment

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

All of them should actually be single quote (since we don't need string interpolation).

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not really working as expected:

image

I'm reverting to the original code

Copy link
Member

@sarahelsaig sarahelsaig Nov 12, 2022

Choose a reason for hiding this comment

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

Yeah, the ternary's components should be the other way around, since "truthy" implies that it's not null or empty.

Copy link
Member Author

Choose a reason for hiding this comment

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

Eh.

@sarahelsaig sarahelsaig merged commit 330e5c8 into dev Nov 13, 2022
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