-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add class and file filter parameters to Fake.Testing.ReportGenerator #2120
Conversation
The failing on CircleCI seems to have nothing to do with this change: |
|> StringBuilder.append (sprintf "-reports:%s" (String.Join(";", reports))) | ||
|> StringBuilder.append (sprintf "-targetdir:%s" parameters.TargetDir) | ||
|> StringBuilder.appendWithoutQuotes (sprintf "-reports:%s" (String.Join(";", reports))) | ||
|> StringBuilder.appendWithoutQuotes (sprintf "-targetdir:\"%s\"" parameters.TargetDir) |
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.
I'd prefer building a sequence/array and then using Args.toWindowsCommandLine
which will handle escaping properly (which your quotes are not, for example when TargetDir
ends with a backslack)
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.
Oh cool, that is one I didn't know of. I will fix it
ac351cf
to
4e8df04
Compare
@matthid Changed the Argument generation |
@magicmonty just to let you know we are discussing this #2114 (comment) I might come up with some idea on how to add some rudimentary unit tests and might ask you to implement some. But if you have an idea feel free to share :) Otherwise this looks good. I'd assume circleci will go green when merging latest |
@matthid I'm happy to add tests, but currently I have no Idea how without adding additional dependencies here. I have a little test project to test this stuff out manually but this would add a dependency on ReportGenerator to this project |
@magicmonty please take a look at the place/test I commented, feel free to ask if you need any help |
Hm, I tried to merge in latest |
I'll make a rebase on release/next if this is ok |
Yes, sorry for the inconvenience... |
4610ab1
to
dba0aac
Compare
dba0aac
to
b5c1c1a
Compare
@matthid Added Unit Tests |
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.
Looks good, the tests fail because the helper did not support a variable number of arguments yet
Thanks! |
Description
The ReportGenerator has added File and class filters. This PR will reflect these change with the addition of two additional optional parameters
ClassFilter
andFileFilter
TODO