-
Notifications
You must be signed in to change notification settings - Fork 178
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
pass through args to cover #72
Conversation
This looks great. @parroty any chance this could be merged? |
@parroty just pinging again on this. I would love to have this merged. |
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; tests look good, too.
I'm sorry about leaving the PR open for long time. It seems I made this PR in conflict status due to the merge of other PR. |
Thanks @parroty. I'll get this updated today. |
like `—include remote`, but not including ExCoveralls specific args that cover won’t understand. fixes parroty#46
817cbe4
to
5585e04
Compare
Mix.Tasks.Coveralls.do_run(args, | ||
[ type: "local", | ||
detail: true, | ||
filter: parsed[:filter] || [] ]) |
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.
the filter arg was appearing twice after the other changes, so I removed this.
not sure if the default of []
is necessary? may need to find a way to bring it 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.
Not sure about that default either.
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.
Seems not necessary as it's checked at when used too.
{common_options, _remaining, _invalid} = OptionParser.parse(args, switches: switches, aliases: aliases) | ||
|
||
# the switches that excoveralls supports | ||
supported_switches = Enum.map(Keyword.keys(switches), fn(s) -> "--#{s}" end) |
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.
equivalent to supported_switches = ~w(--filter --umbrella --verbose --pro --parallel -f -u -v)
but this code adapts to new switches/aliases being added
@joshsmith @parroty Please take another look. The requirements changed when adding the |
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 like what I see here, but would definitely like to see what @parroty thinks regarding the []
default.
Mix.Tasks.Coveralls.do_run(args, | ||
[ type: "local", | ||
detail: true, | ||
filter: parsed[:filter] || [] ]) |
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.
Not sure about that default either.
🙌 thanks @nathany! All good now. |
Thanks @nathany @joshsmith ! |
like
--include remote
, but not including ExCoveralls specific args that cover won’t understand.fixes #46