-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
--no-snippets flag for CLI #207
Conversation
+1 |
As I can see this is already implemented in the CLI of |
Four days left and no comment from the maintainers? |
Ooh, this is nice. |
@@ -52,6 +54,11 @@ describe("Cucumber.Cli.Configuration", function () { | |||
expect(argumentParser.shouldSnippetsBeInCoffeeScript).toHaveBeenCalled(); | |||
}); | |||
|
|||
it("checks whether the step definition snippets should be shown", function () { | |||
configuration.getFormatter(); | |||
expect(argumentParser.shouldSnippetsBeShown).toHaveBeenCalled(); |
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 put a call count assertion on this please :)
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.
Done.
Hi @kr1sp1n this looks great! just a few minor comments, thanks for the work. |
@kr1sp1n would you mind squashing your three commits into a singe one. |
add specs and implement tests add callCount assertion to tests
…umber-js into cli-no-snippets-flag
Thanks @kr1sp1n for this nice piece. Cucumber-rb's got a shorthand version of |
Anything left? Is all ok now? |
hey @kr1sp1n yes this is all good now we just missed it when we cut the last release. This will go out soon. |
👍 |
Thanks @kr1sp1n, this is good work! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Now you are able to pass
--no-snippets
to the CLI and the formatters will not output the step definition snippets. So I added asnippets
key to theoptions
of the CLI configuration and set the value totrue
by default. Thisoptions
object gets passed down to the summary formatter that supress the output of the snippets. I refactored the existing tests and added new specs and tests.Hope this is helpful ;)