Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

kr1sp1n
Copy link

@kr1sp1n kr1sp1n commented Jul 15, 2014

Now you are able to pass --no-snippets to the CLI and the formatters will not output the step definition snippets. So I added a snippets key to the options of the CLI configuration and set the value to true by default. This options 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 ;)

@mupat
Copy link

mupat commented Jul 15, 2014

+1

@kr1sp1n
Copy link
Author

kr1sp1n commented Jul 15, 2014

As I can see this is already implemented in the CLI of

@kr1sp1n
Copy link
Author

kr1sp1n commented Jul 19, 2014

Four days left and no comment from the maintainers?
Super-busy or maybe on vacation? ;)

@yoshuawuyts
Copy link

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();
Copy link
Member

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 :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@samccone
Copy link
Member

samccone commented Aug 4, 2014

Hi @kr1sp1n this looks great!

just a few minor comments, thanks for the work.

@samccone samccone added this to the 0.5 major features milestone Aug 4, 2014
@samccone
Copy link
Member

samccone commented Aug 6, 2014

@kr1sp1n would you mind squashing your three commits into a singe one.

Krispin added 2 commits August 6, 2014 15:27
@jbpros
Copy link
Member

jbpros commented Aug 7, 2014

Thanks @kr1sp1n for this nice piece. Cucumber-rb's got a shorthand version of --no-snippets which is -i. Could you add it please?

@kr1sp1n
Copy link
Author

kr1sp1n commented Aug 15, 2014

Anything left? Is all ok now?

@samccone
Copy link
Member

hey @kr1sp1n yes this is all good now we just missed it when we cut the last release. This will go out soon.

@samccone
Copy link
Member

👍

@jbpros jbpros closed this in 8300995 Dec 18, 2014
@jbpros
Copy link
Member

jbpros commented Dec 18, 2014

Thanks @kr1sp1n, this is good work!

@lock
Copy link

lock bot commented Oct 25, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants