-
Notifications
You must be signed in to change notification settings - Fork 438
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
Added kahlan support #236
Added kahlan support #236
Conversation
istanbul: ~ | ||
lcov: ~ | ||
ff: ~ | ||
'no-colors': ~ |
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'm not sure on this syntax still
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.
In other tasks we use the underscore instead so that we do not need quotes.
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.
Thanks for your PR! Currently you are not using the configuration options. You can use the arguments collection to add them based on the configuration.
istanbul: ~ | ||
lcov: ~ | ||
ff: ~ | ||
'no-colors': ~ |
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.
In other tasks we use the underscore instead so that we do not need quotes.
$arguments->add('--no-interaction'); | ||
|
||
$process = $this->processBuilder->buildProcess($arguments); | ||
$process->run(); |
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.
You are not using the configured values at the moment.
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.
Is there a way to add option automatically or do I have to use "addOptionalArgument" for every option ?
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.
Currently you'll have to use addOptionalArgument
for every option.
However, you could create an additional method for this on the arguments collection.
$resolver->addAllowedTypes('istanbul', ['null', 'string']); | ||
$resolver->addAllowedTypes('lcov', ['null', 'string']); | ||
$resolver->addAllowedTypes('ff', ['null', 'int']); | ||
$resolver->addAllowedTypes('ff', ['null', 'int']); |
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.
This ff option is duplicated.
autoclear: ~ | ||
``` | ||
|
||
Every options available are documented on [kahlan](https://kahlan.github.io/docs/cli-options.html) |
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 you add more information about the options in this document?
In the other tasks, we describe every possible option.
We would like to keep the documentation in the same format as the other tasks.
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.
Fixed
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 don't know why this review stays visible I fixed the problem :(
Fixed everything ,) |
That looks great! Thanks for your work! |
Added support for Kahlan.
New Task Checklist:
run()
method readable?run()
method using the configuration correctly?