-
Notifications
You must be signed in to change notification settings - Fork 588
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
Porting DotCover module #2058
Porting DotCover module #2058
Conversation
change obsolete description
Not really, but somehow it looks wrong ;) Would it be enough to add another public API to those modules with the following signature: let buildArgs (setDotCoverParams: DotCoverParams -> DotCoverParams) : string =
// ... ? |
It is not sufficient, because those |
I think that having Maybe with |
Ah yes, sorry this is actually what I meant... Basically we can make these things public as you suggest in the PR but we should make this a "feature" and unify the signatures (just like we did for
I'm not 100% sure about this because sometimes it can be used for unblocking people, the disadvantage is that there is less need to contribute back ;) |
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.
Just some minor API cleanup and this is good to go
| NDependXml = 3 | ||
|
||
/// The dotCover parameter type for running coverage | ||
[<CLIMutable>] |
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.
Can we remove CLIMutable
?
CustomParameters = "" | ||
ErrorLevel = ErrorLevel.Error} | ||
|
||
[<CLIMutable>] |
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.
here as well
TempDir = "" | ||
CustomParameters = "" } | ||
|
||
[<CLIMutable>] |
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.
and one more
/// ## Parameters | ||
/// | ||
/// - `setParams` - Function used to overwrite the dotCover default parameters. | ||
let DotCover (setParams: DotCoverParams -> DotCoverParams) = |
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.
Can we rename this to run
as other modules?
/// Source = artifactsDir @@ "dotCoverSnapshot.dcvr" | ||
/// Output = artifactsDir @@ "dotCoverReport.xml" | ||
/// ReportType = DotCoverReportType.Xml }) | ||
let DotCoverReport (setParams: DotCoverReportParams -> DotCoverReportParams) = |
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.
DotCover.report
?
/// Output = artifactsDir @@ "NUnitDotCoverSnapshot.dcvr" }) | ||
/// (fun nUnitOptions -> { nUnitOptions with | ||
/// DisableShadowCopy = true }) | ||
let DotCoverNUnit (setDotCoverParams: DotCoverParams -> DotCoverParams) (setNUnitParams: NUnit.Common.NUnitParams -> NUnit.Common.NUnitParams) (assemblies: string seq) = |
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.
DotCover.runNunit
?
Sorry for the late review |
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.
Perfect, thanks!
@matthid Any suggestion with those
internal buildXXXXArgs
from other modules which are used in DotCover?