Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix OpenCover.console.exe parameter ordering issue.#2854

Merged
daxian-dbw merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
adityapatwardhan:OpenCoverUpdatesadityapatwardhan/PowerShell:OpenCoverUpdatesCopy head branch name to clipboard
Dec 8, 2016
Merged

Fix OpenCover.console.exe parameter ordering issue.#2854
daxian-dbw merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
adityapatwardhan:OpenCoverUpdatesadityapatwardhan/PowerShell:OpenCoverUpdatesCopy head branch name to clipboard

Conversation

@adityapatwardhan

Copy link
Copy Markdown
Member

The targetargs parameter needs to be at the end, otherwise everything
after that is considered as part of targetargs.

The targetargs parameter needs to be at the end, otherwise everything
after that is considered as part of targetargs.
@adityapatwardhan

Copy link
Copy Markdown
Member Author

@JamesWTruher can you have a look at this please?

@JamesWTruher

Copy link
Copy Markdown
Collaborator

:shipit:

@PowerShellTeam PowerShellTeam added the Review - Needed The PR is being reviewed label Dec 8, 2016
Comment thread test/tools/OpenCover/OpenCover.psm1 Outdated
# the order seems to be important
$openCoverArgs = "-target:$target","-targetargs:""$targetArgString""","-register:user","-output:${outputLog}","-nodefaultfilters","-oldstyle","-hideskipped:all"
# the order seems to be important. Always keep -targetargs as the last parameter.
$openCoverArgs = "-target:$target","-register:user","-output:${outputLog}","-nodefaultfilters","-oldstyle","-hideskipped:all","-targetargs:""$targetArgString"""

@daxian-dbw daxian-dbw Dec 8, 2016

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we use `" instead of ""? I think the readability is better with it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unfortunately OpenCover.console.exe is very finicky about ", it has to be exactly what it expects.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I means using `" to represent a literal double quote character within a double quoted string. It will still be a double quote when the string is evaluated.

@daxian-dbw daxian-dbw merged commit 49d5b6a into PowerShell:master Dec 8, 2016
@adityapatwardhan adityapatwardhan deleted the OpenCoverUpdates branch December 14, 2016 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.