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

OpenCoverHelper: Do not assume AppData and ProgramFiles exists by default #1229

Merged

Conversation

rexcfnghk
Copy link
Contributor

@rexcfnghk rexcfnghk commented Apr 29, 2016

This fixes calling OpenCover in Linux/MacOS environments where the
OpenCoverDefaults value throws a ArgumentNullException because the @@
operator will call Path.Combine to ProgramFiles and AppData which do not
exist in Linux/MacOS environments.

This fix falls back to the behaviour where ExePath and TestRunnerExePath
must be passed explicitly in Mono environments running Linux/MacOS.

@rexcfnghk rexcfnghk force-pushed the bugfix/fix-opencoverhelper-in-mono branch from 1b81af3 to 4e7ec3f Compare May 1, 2016 02:39
This fixes calling OpenCover in Linux/MacOS environments where the
OpenCoverDefault value throws a ArgumentNullException because the '@@'
operator will call Path.Combine to ProgramFiles and AppData which do not
exist in Linux/MacOS environments.

This fix falls back to the behaviour where ExePath and TestRunnerExePath
must be passed explicitly in Mono environments running Linux/MacOS.
@rexcfnghk rexcfnghk force-pushed the bugfix/fix-opencoverhelper-in-mono branch from 4e7ec3f to 6d324a9 Compare May 4, 2016 07:47
@rexcfnghk rexcfnghk changed the title Do not assume AppData and ProgramFiles exists by default OpenCoverHelper: Do not assume AppData and ProgramFiles exists by default May 9, 2016
@forki forki merged commit db16849 into fsprojects:master May 11, 2016
@rexcfnghk rexcfnghk deleted the bugfix/fix-opencoverhelper-in-mono branch May 11, 2016 23:44
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.

None yet

2 participants